获取运行时Tensor的shape,此shape对象为只读。
const Shape &GetStorageShape() const
无。
只读的运行时shape引用。
StorageShape sh({1, 2, 3}, {2, 1, 3}); Tensor t = {sh, {}, {}, ge::DT_FLOAT, nullptr}; auto shape = t.GetStorageShape(); // 2,1,3