Home
last modified time | relevance | path

Searched refs:fdef_lib (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/compiler/jit/
Dbuild_xla_ops_pass_test.cc58 Status BuildXlaOps(const Scope& s, const FunctionDefLibrary& fdef_lib, in BuildXlaOps() argument
62 FunctionLibraryDefinition flib_def(graph->op_registry(), fdef_lib); in BuildXlaOps()
123 FunctionDefLibrary fdef_lib; in CreateFunctionDefLibWithConstFunction() local
129 *fdef_lib.add_function() = std::move(func); in CreateFunctionDefLibWithConstFunction()
130 return fdef_lib; in CreateFunctionDefLibWithConstFunction()
134 FunctionDefLibrary fdef_lib; in CreateFunctionDefLibWithInt32Input() local
140 *fdef_lib.add_function() = std::move(func); in CreateFunctionDefLibWithInt32Input()
141 return fdef_lib; in CreateFunctionDefLibWithInt32Input()
148 FunctionDefLibrary fdef_lib = in TEST_F() local
150 TF_ASSERT_OK(root.graph()->AddFunctionLibrary(fdef_lib)); in TEST_F()
[all …]
Dxla_cluster_util_test.cc206 void AddRefFunctionFunctionDef(FunctionDefLibrary* fdef_lib) { in AddRefFunctionFunctionDef() argument
214 *fdef_lib->add_function() = make_ref_float; in AddRefFunctionFunctionDef()
217 void AddRegularFunctionFunctionDef(FunctionDefLibrary* fdef_lib) { in AddRegularFunctionFunctionDef() argument
223 *fdef_lib->add_function() = make_regular_float; in AddRegularFunctionFunctionDef()
229 FunctionDefLibrary fdef_lib; in TEST() local
234 AddRefFunctionFunctionDef(&fdef_lib); in TEST()
237 AddRegularFunctionFunctionDef(&fdef_lib); in TEST()
240 FunctionLibraryDefinition flib_def(OpRegistry::Global(), fdef_lib); in TEST()
/external/tensorflow/tensorflow/c/
Dc_api_function.cc247 tensorflow::FunctionDefLibrary fdef_lib; in TF_GraphCopyFunction() local
248 *fdef_lib.add_function() = func->fdef; in TF_GraphCopyFunction()
250 *fdef_lib.add_function() = grad->fdef; in TF_GraphCopyFunction()
251 tensorflow::GradientDef* gdef = fdef_lib.add_gradient(); in TF_GraphCopyFunction()
257 status->status = g->graph.AddFunctionLibrary(fdef_lib); in TF_GraphCopyFunction()
Dc_api_experimental.cc196 const auto& fdef_lib = gdef.library(); in CreateFunctionsFromTextProto() local
197 if (fdef_lib.gradient_size() > 0) { in CreateFunctionsFromTextProto()
204 for (const FunctionDef& fdef : fdef_lib.function()) { in CreateFunctionsFromTextProto()
/external/tensorflow/tensorflow/core/graph/
Dgraph_def_builder.h168 Status AddFunctionLibrary(const FunctionDefLibrary& fdef_lib) { in AddFunctionLibrary() argument
169 return graph_.AddFunctionLibrary(fdef_lib); in AddFunctionLibrary()
Dgraph_partition_test.cc462 FunctionDefLibrary fdef_lib; in TEST_F() local
463 *fdef_lib.add_function() = test::function::XTimesTwo(); in TEST_F()
464 *fdef_lib.add_function() = test::function::XTimesFour(); in TEST_F()
465 TF_ASSERT_OK(in_.graph()->AddFunctionLibrary(fdef_lib)); in TEST_F()
Dgraph.cc631 Status Graph::AddFunctionLibrary(const FunctionDefLibrary& fdef_lib) { in AddFunctionLibrary() argument
633 if (fdef_lib.function_size() > 0 && versions_->min_consumer() < 12) { in AddFunctionLibrary()
636 return ops_.AddLibrary(fdef_lib); in AddFunctionLibrary()
Dgraph.h558 Status AddFunctionLibrary(const FunctionDefLibrary& fdef_lib);
/external/tensorflow/tensorflow/compiler/tf2xla/
Dfunctionalize_cond_test.cc144 FunctionDefLibrary fdef_lib; in TEST() local
145 FunctionLibraryDefinition flib_def(OpRegistry::Global(), fdef_lib); in TEST()
Dxla_compiler_test.cc623 FunctionDefLibrary fdef_lib; in TEST_F() local
624 *(fdef_lib.add_function()) = fdef; in TEST_F()
628 TF_EXPECT_OK(scope.graph()->AddFunctionLibrary(fdef_lib)); in TEST_F()
663 FunctionLibraryDefinition flib_def(OpRegistry::Global(), fdef_lib); in TEST_F()
1562 FunctionDefLibrary fdef_lib; in TEST_F() local
1563 FunctionLibraryDefinition flib_def(OpRegistry::Global(), fdef_lib); in TEST_F()
1635 FunctionDefLibrary fdef_lib; in TEST_F() local
1636 FunctionLibraryDefinition flib_def(OpRegistry::Global(), fdef_lib); in TEST_F()
Dfunctionalize_control_flow_test.cc341 FunctionDefLibrary fdef_lib; in AddNoinlineFunctionToGraph() local
342 *(fdef_lib.add_function()) = GetNoinlineFunctionDef(); in AddNoinlineFunctionToGraph()
343 TF_RETURN_IF_ERROR(graph->AddFunctionLibrary(fdef_lib)); in AddNoinlineFunctionToGraph()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dmeta_optimizer.cc97 const FunctionDefLibrary& fdef_lib) { in GetFunctionDefLibraryStub() argument
99 for (const FunctionDef& fn : fdef_lib.function()) { in GetFunctionDefLibraryStub()
106 *stub.mutable_gradient() = fdef_lib.gradient(); in GetFunctionDefLibraryStub()