接口定义 |
功能说明 |
---|---|
ToString(const op::Shape &shape) |
将op::Shape转换为ge::AscendString的字符串。 |
ToString(const op::Strides &strides) |
将op::Strides转换为ge::AscendString的字符串。 |
ToShape(const int64_t *dims, uint64_t dimNum, op::Shape &shape) |
用给定的dims维度数组构造op::Shape。 |
ToShape(const op::ShapeVector &shapeVector, op::Shape &shape) |
用给定的op::ShapeVector维度数组构造op::Shape。 |
ToShapeVector(const op::Shape &shape) |
将op::Shape转换为op::ShapeVector。 |
ToContiguousStrides(const op::Shape &shape, op::Strides &strides) |
用给定的op::Shape信息构造连续存储的op::Strides。 |
CheckBroadcastShape(const op::Shape &self, const op::Shape &other) |
检查self和other的shape是否可以相互广播。 |
BroadcastInferShape(const op::Shape &self, const op::Shape &other, op::Shape &broadcastShape) |
将self和other广播后的shape保存到broadcast shape中。 |