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

Function UnchangedShapeWithRank

tensorflow/core/framework/common_shape_fns.h:173–179  ·  view source on GitHub ↗

Transfers shape of input(0) to output(0), after asserting its rank is .

Source from the content-addressed store, hash-verified

171
172// Transfers shape of input(0) to output(0), after asserting its rank is <rank>.
173inline Status UnchangedShapeWithRank(shape_inference::InferenceContext* c,
174 int32 rank) {
175 ShapeHandle out;
176 TF_RETURN_IF_ERROR(c->WithRank(c->input(0), rank, &out));
177 c->set_output(0, out);
178 return Status::OK();
179}
180
181// Transfers shape of input(0) to output(0), after asserting its rank >= <rank>.
182inline Status UnchangedShapeWithRankAtLeast(

Callers 2

nn_ops.ccFile · 0.85

Calls 3

WithRankMethod · 0.45
inputMethod · 0.45
set_outputMethod · 0.45

Tested by

no test coverage detected