キャスト
Tensorの値を変換する
| 関数名 | 説明 |
|---|---|
tf.cast(x, dtype) |
キャストする |
tf.string_to_number(string_tensor) |
文字列をtf.float32にキャストする |
tf.to_float(x) |
tf.float32にキャストする |
tf.to_int32(x) |
tf.int32にキャストする |
Sample

参考
Notebook
https://github.com/FaBoPlatform/TensorFlow/blob/master/notebooks/cast.ipynb