らんだむな記憶

blogというものを体験してみようか!的なー

2020-05-01から1日間の記事一覧

TF 2.0 tensor.numpy() inside of map() functions

TF 2.0 tensor.numpy() inside of map() functions · Issue #30035 · tensorflow/tensorflow · GitHubに遭遇した。 print(tf.constant(3).numpy()) を tf.data.Dataset.map の内外で呼んでみると、内部では exception が飛ぶ。 なんか、tf.constant() の動き…

AttributeError: 'Tensor' object has no attribute '_datatype_enum'

Applications - Keras Documentationに従って x = preprocess_input(x) すると exception が飛ぶ。 Dataset.map(tf.keras.applications.vgg16.preprocess_input) -> AttributeError: 'Tensor' object has no attribute '_datatype_enum' · Issue #29931 · te…

0.485, 0.456, 0.406 (2)

0.485, 0.456, 0.406 - らんだむな記憶で謎の正規化について触れた。 pytorch-tutorial/main.py at master · yunjey/pytorch-tutorial · GitHubにわりと気になるコメントがある。よく考えると転移学習を使うならモデルの訓練の前提に合わせるのが良いよなぁ…