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