to_tensor

函数功能

将Image对象转换为Tensor类对象。

函数原型

1
to_tensor()

返回参数说明

返回Tensor。