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

Function MakeOpDef

tensorflow/core/framework/common_shape_fns_test.cc:37–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35PartialTensorShape Unknown() { return PartialTensorShape(); }
36
37OpDef MakeOpDef(int num_inputs, int num_outputs) {
38 OpRegistrationData op_reg_data;
39 OpDefBuilder b("dummy");
40 for (int i = 0; i < num_inputs; ++i) {
41 b.Input(strings::StrCat("i", i, ": float"));
42 }
43 for (int i = 0; i < num_outputs; ++i) {
44 b.Output(strings::StrCat("o", i, ": float"));
45 }
46 CHECK(b.Attr("foo:string").Finalize(&op_reg_data).ok());
47 return op_reg_data.op_def;
48}
49
50} // namespace
51

Callers 1

TESTFunction · 0.70

Calls 6

StrCatFunction · 0.50
InputMethod · 0.45
OutputMethod · 0.45
okMethod · 0.45
FinalizeMethod · 0.45
AttrMethod · 0.45

Tested by

no test coverage detected