向AttrValue的list TensorShape属性中添加TensorShape类型的元素。
std::shared_ptr<TensorShape> AddListTensorShape()
无
std::shared_ptr<TensorShape>,向AttrValue的list TensorShape属性中添加的TensorShape元素的指针。
无。
算子实现时可使用如下接口设置算子A的属性值。
AttrValue *attr = ctx.GetAttr("attr1"); auto shape = attr->AddListTensorShape();