AllocTensorListMsg
产品支持情况
函数功能
根据输入的dtype shapes数组分配一块连续内存,用于承载Tensor数组。
函数原型
virtual std::shared_ptr<FlowMsg> AllocTensorListMsg(const std::vector<std::vector<int64_t>> &shapes, const std::vector<TensorDataType> &dataTypes, uint32_t align = 512U)
参数说明
返回值
申请的FlowMsg指针。
异常处理
申请不到Tensor指针则返回NULL。
约束说明
无。