定义了类型转换函数,接受一个InferTensor 类型参数,进行类型转换,返回值为py::array。
py::array TensorToNumpy(const InferTensor &tensor);
tensor_to_numpy(tensor)