Function deepviewrt_sys::nn_tensor_printf
source · pub unsafe extern "C" fn nn_tensor_printf(
tensor: *mut NNTensor,
data: bool,
out: *mut FILE
)Expand description
Writes the tensor inforamtion to the FILE stream provided. The format is “[D0 D1 D2 D3]” where D0..D3 are the dimensions provided. If the data parameter is true the format will be followed by “: …” where … is the string representation of the tensor’s data.
@warning Before version 2.4.32 this function always assumes float32 tensors and will therefore lead to segmentation faults when used with integer tensors.
@param out Pointer to the FILE stream where the tensor will be written to. @param tensor Pointer to the tensor object.
@public @memberof NNTensor @since 2.0