sponge.function.get_ms_array

View Source On Gitee
sponge.function.get_ms_array(value: Union[float, int, Tensor, Parameter, ndarray, list, tuple], dtype: type = None)[source]

get mindspore.Tensor type of the input value

Parameters
  • value (Union[float, int, Tensor, Parameter, ndarray, list, tuple]) – Input value

  • dtype (type) – Data type. Default: None.

Returns

array (Tensor or Parameter)

Supported Platforms:

Ascend GPU CPU