Home
last modified time | relevance | path

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

/external/tensorflow/tensorflow/compiler/jit/
Dbuild_xla_ops_pass_test.cc57 Status BuildXlaOps(const Scope& s, const FunctionDefLibrary& fdef_lib, in BuildXlaOps() argument
61 FunctionLibraryDefinition flib_def(graph->op_registry(), fdef_lib); in BuildXlaOps()
122 FunctionDefLibrary fdef_lib; in CreateFunctionDefLibWithConstFunction() local
128 *fdef_lib.add_function() = std::move(func); in CreateFunctionDefLibWithConstFunction()
129 return fdef_lib; in CreateFunctionDefLibWithConstFunction()
136 FunctionDefLibrary fdef_lib = in TEST_F() local
138 TF_ASSERT_OK(root.graph()->AddFunctionLibrary(fdef_lib)); in TEST_F()
146 TF_ASSERT_OK(BuildXlaOps(root, fdef_lib, &graph)); in TEST_F()
156 FunctionDefLibrary fdef_lib = in TEST_F() local
158 TF_ASSERT_OK(root.graph()->AddFunctionLibrary(fdef_lib)); in TEST_F()
[all …]
Dpartially_decluster_pass_test.cc95 FunctionDefLibrary fdef_lib; in PartiallyDecluster() local
96 FunctionLibraryDefinition flib_def(OpRegistry::Global(), fdef_lib); in PartiallyDecluster()
/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.cc602 Status Graph::AddFunctionLibrary(const FunctionDefLibrary& fdef_lib) { in AddFunctionLibrary() argument
604 if (fdef_lib.function_size() > 0 && versions_->min_consumer() < 12) { in AddFunctionLibrary()
607 return ops_.AddLibrary(fdef_lib); in AddFunctionLibrary()
Dgraph.h532 Status AddFunctionLibrary(const FunctionDefLibrary& fdef_lib);
/external/tensorflow/tensorflow/c/
Dc_api_function.cc655 tensorflow::FunctionDefLibrary fdef_lib; in TF_GraphCopyFunction() local
656 *fdef_lib.add_function() = func->fdef; in TF_GraphCopyFunction()
658 *fdef_lib.add_function() = grad->fdef; in TF_GraphCopyFunction()
659 tensorflow::GradientDef* gdef = fdef_lib.add_gradient(); in TF_GraphCopyFunction()
665 status->status = g->graph.AddFunctionLibrary(fdef_lib); in TF_GraphCopyFunction()
Dc_api_experimental.cc154 const auto& fdef_lib = gdef.library(); in CreateFunctionsFromTextProto() local
155 if (fdef_lib.gradient_size() > 0) { in CreateFunctionsFromTextProto()
162 for (const FunctionDef& fdef : fdef_lib.function()) { in CreateFunctionsFromTextProto()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dfunctionalize_control_flow_test.cc340 FunctionDefLibrary fdef_lib; in AddNoinlineFunctionToGraph() local
341 *(fdef_lib.add_function()) = GetNoinlineFunctionDef(); in AddNoinlineFunctionToGraph()
342 TF_RETURN_IF_ERROR(graph->AddFunctionLibrary(fdef_lib)); in AddNoinlineFunctionToGraph()
Dxla_compiler_test.cc565 FunctionDefLibrary fdef_lib; in TEST_F() local
566 *(fdef_lib.add_function()) = fdef; in TEST_F()
570 TF_EXPECT_OK(scope.graph()->AddFunctionLibrary(fdef_lib)); in TEST_F()
605 FunctionLibraryDefinition flib_def(OpRegistry::Global(), fdef_lib); in TEST_F()