Is there any way to interconvert between Tensor<T> and FunctionalTensor?

Hi, Sentis team,

It must be ported from IBackend API to the Functional API for migrate existing code to Sentis 2.0.0.
Is there any way to interconvert between Tensor and FunctionalTensor?
How can I process directly to Tensor like a IBackend API using Functional API without compile new model?

// Sentis 1.6.0-pre.1
var confidences = TensorFloat.AllocNoData(output_tensor.shape);
backend.Softmax(output_tensor, confidences, -1);

Thanks,

1 Like

https://docs.unity3d.com/Packages/com.unity.sentis@2.0/manual/edit-a-model.html
You either need to create or edit a model with the functional API to be able to run the softmax

// output = Functional.Forward(model, inputs); or  graph.AddInputs(model);

FunctionalTensor softmax = Functional.Softmax(output);
// Build the model from the graph using the `Compile` method with the desired outputs.
var modelWithSoftmax = graph.Compile(softmax);