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

Function Scalars

tensorflow/core/grappler/verifiers/structure_verifier_test.cc:44–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42};
43
44Status Scalars(shape_inference::InferenceContext* c) {
45 for (int i = 0; i < c->num_outputs(); ++i) {
46 c->set_output(i, c->Scalar());
47 }
48 return Status::OK();
49}
50
51REGISTER_OP("TestParams").Output("o: float").SetShapeFn(Scalars);
52REGISTER_OP("TestInput")

Callers

nothing calls this directly

Calls 3

num_outputsMethod · 0.45
set_outputMethod · 0.45
ScalarMethod · 0.45

Tested by

no test coverage detected