获取AttrValue的list TensorShape类型的属性值。
std::vector<TensorShape> GetListTensorShape() const
无
std::vector<TensorShape>,AttrValue的list TensorShape属性值。
无。
算子实现时可使用如下接口获取算子A的属性值。
AttrValue *attr = ctx.GetAttr("attr1"); std::vector<TensorShape> shapes = attr->GetListTensorShape();