Tensorflow常见数据类型
Tensor(张量):多维数组

数据类型
1 | # tfint, tf.float ... |
如何创建一个Tensor
使用关键字constant
1 | tensorflow.constant(数据,dtype=数据类型(可选)) |
1 | import tensorflow as tf |

shape=(行数,列数)
创建Tensor
1 | import tensorflow as tf |

1 | # tfint, tf.float ... |
1 | tensorflow.constant(数据,dtype=数据类型(可选)) |
1 | import tensorflow as tf |
shape=(行数,列数)
1 | import tensorflow as tf |