| 30 | namespace { |
| 31 | |
| 32 | OpDef 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 | |
| 41 | PartialTensorShape S(std::initializer_list<int64> dims) { |
| 42 | return PartialTensorShape(dims); |