获取Tensor的shape,包含运行时和原始shape。
const StorageShape &GetShape() const
StorageShape &GetShape()
无。
关于StorageShape类型的定义,请参见StorageShape结构体。
无。
StorageShape sh({1, 2, 3}, {2, 1, 3}); Tensor t = {sh, {}, {}, ge::DT_FLOAT, nullptr}; auto shape = t.GetShape(); // sh