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

Function MakeOpDefWithLists

tensorflow/core/framework/shape_inference_test.cc:32–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30namespace {
31
32OpDef MakeOpDefWithLists() {
33 OpRegistrationData op_reg_data;
34 OpDefBuilder b("dummy");
35 b.Input(strings::StrCat("input: N * float"));
36 b.Output(strings::StrCat("output: N * float"));
37 CHECK(b.Attr("N:int >= 1").Finalize(&op_reg_data).ok());
38 return op_reg_data.op_def;
39}
40
41PartialTensorShape S(std::initializer_list<int64> dims) {
42 return PartialTensorShape(dims);

Callers 1

TEST_FFunction · 0.85

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