MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / GetShapePtr

Method GetShapePtr

tensorflow/compiler/xla/client/xla_builder.cc:105–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105StatusOr<const Shape*> XlaBuilder::GetShapePtr(XlaOp op) const {
106 TF_RETURN_IF_ERROR(first_error_);
107 TF_RETURN_IF_ERROR(CheckOpBuilder(op));
108 auto it = handle_to_index_.find(op.handle());
109 if (it == handle_to_index_.end()) {
110 return InvalidArgument("No XlaOp with handle %d", op.handle());
111 }
112 return instruction_shapes_.at(it->second).get();
113}
114
115StatusOr<Shape> XlaBuilder::GetShape(XlaOp op) const {
116 TF_ASSIGN_OR_RETURN(const Shape* shape, GetShapePtr(op));

Callers

nothing calls this directly

Calls 6

InvalidArgumentFunction · 0.85
findMethod · 0.45
handleMethod · 0.45
endMethod · 0.45
getMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected