Atlas 训练系列产品
Atlas A2训练系列产品/Atlas 800I A2推理产品
Atlas 200I/500 A2推理产品
Atlas 推理系列产品
该函数为公共的L0接口,作用是将非连续tensor转换为连续tensor。
由于L2级API的输入tensor可能是非连续的,一般L0级算子只支持连续tensor作为输入,因此需要将tensor转为连续后再作为其他L0算子的输入。
输入tensor可以是连续的,接口内部会兼容处理。
const aclTensor *Contiguous(const aclTensor *x, aclOpExecutor *executor)
参数 |
输入/输出 |
说明 |
---|---|---|
x |
输入 |
待转连续的tensor数据。 |
executor |
输入 |
op执行器,包含了算子计算流程。 |
若转换成功,则返回一个连续的aclTensor, 若失败,则返回nullptr。
无