d-python

tensor flow 啟動

cd tensor flow

Chengde-MacBook-Pro:tensorflow chengpeter$ source bin/activate

(tensorflow) Chengde-MacBook-Pro:tensorflow chengpeter$

啟動 IDE —>ipython notebook

ipython nbconvert --to=python Tonsorboard Tutorial.ipynb

Run the command line:

--> tensorboard --logdir=/tmp/tensorflow_logs

Then open http://0.0.0.0:6006/ into your web browser

增加兩行

mport ssl

ssl._create_default_https_context = ssl._create_unverified_context

import os

os.environ['TF_CPP_MIN_LOG_LEVEL'] = '2'

import matplotlib

matplotlib.use('TkAgg’)