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

Function MergeBothInputsShapeFn

tensorflow/core/framework/common_shape_fns.h:211–216  ·  view source on GitHub ↗

Shape function for binary ops where both inputs and the output match.

Source from the content-addressed store, hash-verified

209
210// Shape function for binary ops where both inputs and the output match.
211inline Status MergeBothInputsShapeFn(InferenceContext* c) {
212 ShapeHandle out;
213 TF_RETURN_IF_ERROR(c->Merge(c->input(0), c->input(1), &out));
214 c->set_output(0, out);
215 return Status::OK();
216}
217
218// Returns a new shape with the specified dims arranged in the specified
219// format. The returned value is owned by this context.

Callers 1

state_ops.ccFile · 0.85

Calls 3

MergeMethod · 0.45
inputMethod · 0.45
set_outputMethod · 0.45

Tested by

no test coverage detected