From 0a944c5c9179bcb193d5a21e8b27ec93f1aad0b2 Mon Sep 17 00:00:00 2001 From: luyh Date: Tue, 1 Oct 2019 20:08:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dimport=20matplotlib=20MaxOS?= =?UTF-8?q?=E6=8A=A5=E9=94=99=20matplotlib.use('TkAgg')?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tensorflowTUT/tf11_build_network/full_code.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tensorflowTUT/tf11_build_network/full_code.py b/tensorflowTUT/tf11_build_network/full_code.py index a1f335e..13e5764 100644 --- a/tensorflowTUT/tf11_build_network/full_code.py +++ b/tensorflowTUT/tf11_build_network/full_code.py @@ -9,8 +9,11 @@ from __future__ import print_function import tensorflow as tf import numpy as np +import matplotlib +matplotlib.use('TkAgg') import matplotlib.pyplot as plt + def add_layer(inputs, in_size, out_size, activation_function=None): Weights = tf.Variable(tf.random_normal([in_size, out_size])) biases = tf.Variable(tf.zeros([1, out_size]) + 0.1)

AltStyle によって変換されたページ (->オリジナル) /