setData
If the tensor from which the content is read back is of Tensor.DataType.INT16 datatype, you can use this method to update the content to an short array. Then, you can call applyChange to apply the update to the tensor.
Parameters
the short array to update the content.
Throws
if the tensor from which the content is read back is not of Tensor.DataType.INT16 datatype.
If the tensor from which the content is read back is of Tensor.DataType.INT32 datatype, you can use this method to update the content to an integer array. Then, you can call applyChange to apply the update to the tensor.
Parameters
the integer array to update the content.
Throws
if the tensor from which the content is read back is not of Tensor.DataType.INT32 datatype.
If the tensor from which the content is read back is of Tensor.DataType.FLOAT32 datatype, you can use this method to update the content to a float array. Then, you can call applyChange to apply the update to the tensor.
Parameters
the integer array to update the content.
Throws
if the tensor from which the content is read back is not of Tensor.DataType.FLOAT32 datatype.
If the tensor from which the content is read back is of Tensor.DataType.FLOAT64 datatype, you can use this method to update the content to an integer array. Then, you can call applyChange to apply the update to the tensor.
Parameters
the double array to update the content.
Throws
if the tensor from which the content is read back is not of Tensor.DataType.FLOAT64 datatype.