w3c学习网址

TensorFlow将给定值转换为张量

tf.convert_to_tensor

此函数将各种类型的 Python 对象转换为 Tensor 对象.它接受 Tensor 对象,numpy 数组,Python 列表和 Python 标量

convert_to_tensor ( 
    value , 
    dtype = None , 
    name = None , 
    preferred_dtype = None
 )
输入格式类型

相关文章: