查询Que中目前是否已有入队的Tensor。
__aicore__ inline bool HasTensorInQue();
无
Atlas 训练系列产品
Atlas推理系列产品AI Core
Atlas A2训练系列产品
无
// 根据VacantInQue判断当前que中是否有已入队的Tensor,当前que的深度为4,无内存Enque动作,返回为false TPipe pipe; TQue<TPosition::VECOUT, 4> que; int num = 4; int len = 1024; pipe.InitBuffer(que, num, len); bool ret = que.HasTensorInQue();