PyTorch,Tensorflow

Thumbnail of post image 011

学習しているとエポックごとの誤差やテストデータセットでのF1 scoreなどを継続的に記録したいと思うことがある.

こんなときにはwriter.add_scalarを使うのが良い.

下記にサンプルコードを載せる ...

Python,Tensorflow

Thumbnail of post image 037

pip install tensorflow

を実行した際,

ERROR: Could not find a version that satisfies the requirement tensorflow

ELECTRA,Google Cloud Platform,Tensorflow

Thumbnail of post image 142

GCP経由でTPUを利用することによって,ELECTRAの事前学習を実行する方法を紹介.

必要なサービスCompute Engine
Cloud TPU
Cloud Storage
手順Cloud Shell ...

NLP,Python,Tensorflow

Thumbnail of post image 000
前準備

Tensorflow(GPU版)をpipでインストール。pipのバージョン違いで混乱することがあるため、私はpython -m pipでインストールした。バージョンは1.15にすること。

python -m pip ins ...

Tensorflow

Thumbnail of post image 034

tensorboard --logdir=/run/Sep23_18-03-17_hogecloud9経由の場合tensorboard --bind_all --logdir ./logs

の後,ブラウザに以下を打ち込む

Tensorflow

Thumbnail of post image 063

TensorflowがRaspiに正式に対応したようだ。

正式対応に伴い、多数のブログでインストール方法やTIPSが色々公開されている。

私もRaspi 3B+をもっているので、インストールしたいなと考えている ...

Keras,Tensorflow

Thumbnail of post image 022

>>> from tensorflow.python.client import device_lib>>> print(device_lib.list_local_devices()) 2018-09- ...

Tensorflow

Thumbnail of post image 030

WindowsにTensorflowをインストールしたので,試しにCNNしてみた.

なお,本記事の手順は以下の記事を参考にした.

blogs.yahoo.co.jp

必要スクリプトのダウンロード

以下 ...

Tensorflow

Thumbnail of post image 039

タイトルのパッケージをインストールする手順をここに示す.

前提条件

CUDA9.0とcuDNN7.05, Anacondaがすでにインストールされていることが前提.

上3つのインストール手順の説明は本記事では扱わ ...