怎么用飞浆将numpy转换成tensor呀?
还有就是用飞桨的API,莫名的不能用,总是显示数据格式不对,例
import paddle.fluid as fluid
import numpy as np
x = np.zeros((2,2))
y = paddle.fluid.layers.cast(x, dtype=float)
print(y)
错误:
TypeError: The type of 'x' in cast must be , but received .
收藏
点赞
0
个赞
请登录后评论
TOP
切换版块