Shape rank and dimensions are accessed through InferenceContext.
| 81 | |
| 82 | // Shape rank and dimensions are accessed through InferenceContext. |
| 83 | class Shape { |
| 84 | private: |
| 85 | Shape(); |
| 86 | Shape(const std::vector<DimensionHandle>& dims); |
| 87 | ~Shape() {} |
| 88 | |
| 89 | const int32 rank_; |
| 90 | const std::vector<DimensionHandle> dims_; |
| 91 | |
| 92 | friend class InferenceContext; |
| 93 | friend class ShapeManager; |
| 94 | friend class ::tensorflow::grappler::SymbolicShapeManager; |
| 95 | |
| 96 | TF_DISALLOW_COPY_AND_ASSIGN(Shape); |
| 97 | }; |
| 98 | |
| 99 | class ShapeHandle { |
| 100 | public: |
no outgoing calls