Function MSModelGetOutputByTensorName

Function Documentation

MSTensorHandle MSModelGetOutputByTensorName(const MSModelHandle model, const char *tensor_name)

Obtains the output tensor handle of the model by name.

Parameters
  • model[in] Model object handle.

  • tensor_name[in] The name of tensor.

Returns

The output tensor handle with the given name, if the name is not found, an NULL is returned.