Hello,
How to convert ‘Unity.Sentis.FunctionalTensor’ to ‘Unity.Sentis.TensorFloat’?
I want to inspect the shape and contents of a FunctionalTensor, however, I did not find any supporting method to do so. I know there are ways to do that for TensorFloat.
The data type of the functional tensor is Float.
So can I convert functional tensor to tensorfloat and inspect it’s size and shape while debugging?
I have tried as suggested here, Cast Tensor to TensorFloat - #2 by alexandreribard_unity,
TensorFloat vc = boxCoords as TensorFloat; //boxCoords is a FunctionalTensor
and I get the following error:
Error (active) CS0039 Cannot convert type ‘Unity.Sentis.FunctionalTensor’ to ‘Unity.Sentis.TensorFloat’ via a reference conversion, boxing conversion, unboxing conversion, wrapping conversion, or null type conversion
Will appreciate any help and suggestion. Thanks!