| 805 | } |
| 806 | |
| 807 | bool PartialTensorShape::AsTensorShape(TensorShape* shape) const { |
| 808 | if (IsFullyDefined()) { |
| 809 | const TensorShapeRep* rep = this; |
| 810 | *shape = *static_cast<const TensorShape*>(rep); |
| 811 | return true; |
| 812 | } |
| 813 | return false; |
| 814 | } |
| 815 | |
| 816 | bool PartialTensorShape::IsIdenticalTo(const PartialTensorShape& shape) const { |
| 817 | if (unknown_rank() || shape.unknown_rank()) { |
no outgoing calls