| 38 | } |
| 39 | |
| 40 | static bool isFirstWrite(const Tensor::InsideDescribe::NativeInsideDescribe* des) { |
| 41 | if (des->tensorArrayAttr->elemShape.empty()) { |
| 42 | return true; |
| 43 | } |
| 44 | for (const auto& dim : des->tensorArrayAttr->elemShape[0]) { |
| 45 | if (dim < 0) { |
| 46 | return true; |
| 47 | } |
| 48 | } |
| 49 | return false; |
| 50 | } |
| 51 | |
| 52 | class GeometryTensorArray : public GeometryComputer { |
| 53 | public: |