Home
last modified time | relevance | path

Searched refs:OpDefBuilder (Results 1 – 20 of 20) sorted by relevance

/external/tensorflow/tensorflow/core/framework/
Dop_def_util_test.cc46 Status TestBuilder(const OpDefBuilder& builder) { in TestBuilder()
70 TF_EXPECT_OK(TestBuilder(OpDefBuilder("X").Attr("a: int"))); in TEST_F()
71 TF_EXPECT_OK(TestBuilder(OpDefBuilder("X").Input("a: int32"))); in TEST_F()
72 TF_EXPECT_OK(TestBuilder(OpDefBuilder("X").Output("a: bool"))); in TEST_F()
73 TF_EXPECT_OK(TestBuilder(OpDefBuilder("X").Attr("t: type").Input("a: t"))); in TEST_F()
74 TF_EXPECT_OK(TestBuilder(OpDefBuilder("X").Attr("a: int = 3"))); in TEST_F()
75 TF_EXPECT_OK(TestBuilder(OpDefBuilder("X").Attr("a: int >= -5"))); in TEST_F()
76 TF_EXPECT_OK(TestBuilder(OpDefBuilder("X").Attr("a: int >= -5"))); in TEST_F()
77 TF_EXPECT_OK(TestBuilder(OpDefBuilder("X").Attr("a: int >= -5 = 3"))); in TEST_F()
78 TF_EXPECT_OK(TestBuilder(OpDefBuilder("X").Attr("a: numbertype"))); in TEST_F()
[all …]
Dop_def_builder.h53 class OpDefBuilder {
56 explicit OpDefBuilder(std::string op_name);
89 OpDefBuilder& Attr(std::string spec);
106 OpDefBuilder& Input(std::string spec);
107 OpDefBuilder& Output(std::string spec);
111 OpDefBuilder& SetIsCommutative();
112 OpDefBuilder& SetIsAggregate();
113 OpDefBuilder& SetIsStateful();
114 OpDefBuilder& SetAllowsUninitializedInput();
117 OpDefBuilder& Deprecated(int version, std::string explanation);
[all …]
Dop_compatibility_test.cc224 OpDefBuilder("AddAttr").Output("ndef: string").Finalize(&old_op)); in TEST_F()
236 TF_ASSERT_OK(OpDefBuilder("LessStrict") in TEST_F()
254 TF_ASSERT_OK(OpDefBuilder("RemoveRestriction") in TEST_F()
272 TF_ASSERT_OK(OpDefBuilder("AttrOrder") in TEST_F()
295 TF_ASSERT_OK(OpDefBuilder("TypePolymorphic") in TEST_F()
317 TF_ASSERT_OK(OpDefBuilder("MakeList") in TEST_F()
340 TF_ASSERT_OK(OpDefBuilder("MakePolyList") in TEST_F()
362 TF_ASSERT_OK(OpDefBuilder("MakeAnyList") in TEST_F()
384 TF_ASSERT_OK(OpDefBuilder("PolyIntoList") in TEST_F()
410 TF_ASSERT_OK(OpDefBuilder("MakeMultipleSameList") in TEST_F()
[all …]
Dnode_def_builder_test.cc35 void Op(const OpDefBuilder& op_def_builder) { in Op()
119 Op(OpDefBuilder("Simple").Input("a: int32").Output("out: float")); in TEST_F()
219 Op(OpDefBuilder("Polymorphic") in TEST_F()
252 Op(OpDefBuilder("PolymorphicOut").Output("out: T").Attr("T: type")); in TEST_F()
285 Op(OpDefBuilder("PolymorphicDefaultOut") in TEST_F()
299 Op(OpDefBuilder("Binary").Input("a: T").Input("b: T").Output("out: T").Attr( in TEST_F()
318 Op(OpDefBuilder("Restrict") in TEST_F()
333 Op(OpDefBuilder("TypeList").Input("a: T").Attr("T: list(type)")); in TEST_F()
364 Op(OpDefBuilder("TypeListNoMin").Input("a: T").Attr("T: list(type) >= 0")); in TEST_F()
381 Op(OpDefBuilder("TypeListTwice") in TEST_F()
[all …]
Dop_def_builder.cc560 OpDefBuilder::OpDefBuilder(string op_name) { in OpDefBuilder() function in tensorflow::OpDefBuilder
564 OpDefBuilder& OpDefBuilder::Attr(string spec) { in Attr()
569 OpDefBuilder& OpDefBuilder::Input(string spec) { in Input()
574 OpDefBuilder& OpDefBuilder::Output(string spec) { in Output()
579 OpDefBuilder& OpDefBuilder::ControlOutput(string name) { in ControlOutput()
585 OpDefBuilder& OpDefBuilder::Doc(string text) { in Doc()
596 OpDefBuilder& OpDefBuilder::SetIsCommutative() { in SetIsCommutative()
601 OpDefBuilder& OpDefBuilder::SetIsAggregate() { in SetIsAggregate()
606 OpDefBuilder& OpDefBuilder::SetIsStateful() { in SetIsStateful()
611 OpDefBuilder& OpDefBuilder::SetAllowsUninitializedInput() { in SetAllowsUninitializedInput()
[all …]
Dgraph_def_util_test.cc31 Status FinalizeOpDef(const OpDefBuilder& b, OpDef* op_def) { in FinalizeOpDef()
41 TF_ASSERT_OK(FinalizeOpDef(OpDefBuilder("Project>SomeOp"), op_list.add_op())); in TEST()
53 FinalizeOpDef(OpDefBuilder("NoChangeWithDefault").Attr("a: int = 12"), in TEST()
73 TF_ASSERT_OK(FinalizeOpDef(OpDefBuilder("NoChangeNoDefault").Attr("a: int"), in TEST()
97 FinalizeOpDef(OpDefBuilder("UsesDefault"), consumer_op_list.add_op())); in TEST()
101 TF_ASSERT_OK(FinalizeOpDef(OpDefBuilder("UsesDefault").Attr("a: int = 17"), in TEST()
128 TF_ASSERT_OK(FinalizeOpDef(OpDefBuilder("ChangedFromDefault"), in TEST()
134 FinalizeOpDef(OpDefBuilder("ChangedFromDefault").Attr("a: int = 17"), in TEST()
158 FinalizeOpDef(OpDefBuilder("Underscore"), consumer_op_list.add_op())); in TEST()
163 FinalizeOpDef(OpDefBuilder("Underscore"), producer_op_list.add_op())); in TEST()
[all …]
Dnode_def_util_test.cc34 OpDef ToOpDef(const OpDefBuilder& builder) { in ToOpDef()
78 const OpDef op = ToOpDef(OpDefBuilder("In").Input("i: T").Attr("T: type")); in TEST()
143 ToOpDef(OpDefBuilder("Out").Output("o: T").Attr("T: numbertype")); in TEST()
163 const OpDef op = ToOpDef(OpDefBuilder("Enum").Attr("e: {'apple','orange'}")); in TEST()
186 const OpDef op = ToOpDef(OpDefBuilder("SameIn") in TEST()
218 ToOpDef(OpDefBuilder("AnyIn").Input("i: T").Attr("T: list(type) >= 1")); in TEST()
245 const OpDef op_def1 = ToOpDef(OpDefBuilder("None")); in TEST()
252 const OpDef op_def2 = ToOpDef(OpDefBuilder("WithAttr").Attr("v: int")); in TEST()
410 const OpDef op_def = ToOpDef(OpDefBuilder("Simple") in TEST()
431 const OpDef op_def = ToOpDef(OpDefBuilder("Simple") in TEST()
[all …]
Dop_def_builder_test.cc41 OpDefBuilder b() { return OpDefBuilder("Test"); } in b()
43 void ExpectSuccess(const OpDefBuilder& builder, StringPiece proto, in ExpectSuccess()
64 void ExpectOrdered(const OpDefBuilder& builder, StringPiece proto) { in ExpectOrdered()
77 void ExpectFailure(const OpDefBuilder& builder, const string& error) { in ExpectFailure()
Dnode_properties_test.cc25 OpDef ToOpDef(const OpDefBuilder& builder) { in ToOpDef()
34 : op_reg_(ToOpDef(OpDefBuilder("Foo") in MockOpRegistry()
Dop.h267 const ::tensorflow::OpDefBuilder& builder() const { return builder_; } in builder()
272 mutable ::tensorflow::OpDefBuilder builder_;
Dcommon_shape_fns_test.cc39 OpDefBuilder b("dummy"); in MakeOpDef()
54 TF_CHECK_OK(OpDefBuilder("Assert") in TEST()
74 TF_CHECK_OK(OpDefBuilder("L2Loss") in TEST()
102 TF_CHECK_OK(OpDefBuilder("MatMul") in TEST()
409 TF_CHECK_OK(OpDefBuilder("BiasAdd") in TEST()
539 TF_CHECK_OK(OpDefBuilder("BiasAddGrad") in TEST()
Dfunction.cc1820 OpDefBuilder b(function_name); in Create()
1877 OpDefBuilder b(name); in Define()
Dshape_inference_test.cc42 OpDefBuilder b("dummy"); in MakeOpDefWithLists()
112 OpDefBuilder b("dummy"); in MakeOpDef()
/external/tensorflow/tensorflow/c/
Dops.cc26 using ::tensorflow::OpDefBuilder;
36 auto* result = new OpDefBuilder(op_name); in TF_NewOpDefinitionBuilder()
41 delete reinterpret_cast<OpDefBuilder*>(builder); in TF_DeleteOpDefinitionBuilder()
46 reinterpret_cast<OpDefBuilder*>(builder)->Input(input_spec); in TF_OpDefinitionBuilderAddInput()
51 reinterpret_cast<OpDefBuilder*>(builder)->Output(output_spec); in TF_OpDefinitionBuilderAddOutput()
57 reinterpret_cast<OpDefBuilder*>(builder)->func_name(); \
67 reinterpret_cast<OpDefBuilder*>(builder)->Attr(attr_spec); in DEFINE_BUILDER_BOOL_SETTER()
72 reinterpret_cast<OpDefBuilder*>(builder)->Deprecated(version, explanation); in TF_OpDefinitionBuilderDeprecated()
77 auto* cc_builder = reinterpret_cast<OpDefBuilder*>(builder); in TF_RegisterOpDefinition()
91 auto* cc_builder = reinterpret_cast<OpDefBuilder*>(builder); in TF_OpDefinitionBuilderSetShapeInferenceFunction()
Dops_test.cc178 OpDefBuilder b("dummy"); in MakeOpDef()
/external/tensorflow/tensorflow/core/graph/
Dvalidate_test.cc100 TF_ASSERT_OK(OpDefBuilder("UniqueSnowflake").Finalize(&op_reg_data)); in TEST()
112 TF_ASSERT_OK(OpDefBuilder("NotAnywhere").Finalize(&op_reg_data)); in TEST()
/external/tensorflow/tensorflow/core/api_def/
Dupdate_api_def.cc126 OpDefBuilder b(op.name()); in ValidateOpDocs()
/external/tensorflow/tensorflow/lite/delegates/flex/
Dkernel_test.cc358 tensorflow::OpDefBuilder b("dummy"); in MakeOpDef()
/external/tensorflow/tensorflow/python/framework/
Dpython_api_info.cc211 OpDefBuilder op_def_builder(api_name_); in InitializeFromParamSpecs()
/external/tensorflow/tensorflow/core/grappler/costs/
Dgraph_properties_test.cc2473 OpDefBuilder b("dummy"); in TEST()