Home
last modified time | relevance | path

Searched refs:fdef_lib (Results 1 – 15 of 15) 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()
137 FunctionDefLibrary fdef_lib = in TEST_F() local
139 TF_ASSERT_OK(root.graph()->AddFunctionLibrary(fdef_lib)); in TEST_F()
149 TF_ASSERT_OK(BuildXlaOps(root, fdef_lib, &graph)); in TEST_F()
159 FunctionDefLibrary fdef_lib = in TEST_F() local
161 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.cc253 tensorflow::FunctionDefLibrary fdef_lib; in TF_GraphCopyFunction() local
254 *fdef_lib.add_function() = func->fdef; in TF_GraphCopyFunction()
256 *fdef_lib.add_function() = grad->fdef; in TF_GraphCopyFunction()
257 tensorflow::GradientDef* gdef = fdef_lib.add_gradient(); in TF_GraphCopyFunction()
263 status->status = g->graph.AddFunctionLibrary(fdef_lib); in TF_GraphCopyFunction()
Dc_api_experimental.cc205 const auto& fdef_lib = gdef.library(); in CreateFunctionsFromTextProto() local
206 if (fdef_lib.gradient_size() > 0) { in CreateFunctionsFromTextProto()
213 for (const FunctionDef& fdef : fdef_lib.function()) { in CreateFunctionsFromTextProto()
/external/tensorflow/tensorflow/core/common_runtime/
Dreplicate_per_replica_nodes_test.cc229 FunctionDefLibrary fdef_lib; in TEST() local
230 FunctionLibraryDefinition flib_def(OpRegistry::Global(), fdef_lib); in TEST()
244 *fdef_lib.add_function() = fdef; in TEST()
250 TF_EXPECT_OK(scope.graph()->AddFunctionLibrary(fdef_lib)); in TEST()
/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.cc656 Status Graph::AddFunctionLibrary(const FunctionDefLibrary& fdef_lib) { in AddFunctionLibrary() argument
658 if (fdef_lib.function_size() > 0 && versions_->min_consumer() < 12) { in AddFunctionLibrary()
661 return ops_.AddLibrary(fdef_lib); in AddFunctionLibrary()
Dgraph.h583 Status AddFunctionLibrary(const FunctionDefLibrary& fdef_lib);
/external/tensorflow/tensorflow/compiler/tf2xla/
Dfunctionalize_control_flow.cc125 FunctionDefLibrary fdef_lib; in AddFunctionDefToGraphLibrary() local
126 *(fdef_lib.add_function()) = *new_fdef; in AddFunctionDefToGraphLibrary()
127 return graph->AddFunctionLibrary(fdef_lib); in AddFunctionDefToGraphLibrary()
Dfunctionalize_cond_test.cc144 FunctionDefLibrary fdef_lib; in TEST() local
145 FunctionLibraryDefinition flib_def(OpRegistry::Global(), fdef_lib); in TEST()
Dfunctionalize_control_flow_test.cc226 FunctionDefLibrary fdef_lib; in RunTest() local
227 *(fdef_lib.add_function()) = cond_fdef; in RunTest()
228 TF_ASSERT_OK(scope.graph()->AddFunctionLibrary(fdef_lib)); in RunTest()
448 FunctionDefLibrary fdef_lib; in AddNoinlineFunctionToGraph() local
449 *(fdef_lib.add_function()) = GetNoinlineFunctionDef(); in AddNoinlineFunctionToGraph()
450 TF_RETURN_IF_ERROR(graph->AddFunctionLibrary(fdef_lib)); in AddNoinlineFunctionToGraph()
Dxla_compiler_test.cc641 FunctionDefLibrary fdef_lib; in TEST_F() local
642 *(fdef_lib.add_function()) = fdef; in TEST_F()
646 TF_EXPECT_OK(scope.graph()->AddFunctionLibrary(fdef_lib)); in TEST_F()
681 FunctionLibraryDefinition flib_def(OpRegistry::Global(), fdef_lib); in TEST_F()
1570 FunctionDefLibrary fdef_lib; in TEST_F() local
1571 FunctionLibraryDefinition flib_def(OpRegistry::Global(), fdef_lib); in TEST_F()
1642 FunctionDefLibrary fdef_lib; in TEST_F() local
1643 FunctionLibraryDefinition flib_def(OpRegistry::Global(), fdef_lib); in TEST_F()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dmeta_optimizer.cc101 const FunctionDefLibrary& fdef_lib) { in GetFunctionDefLibraryStub() argument
103 for (const FunctionDef& fn : fdef_lib.function()) { in GetFunctionDefLibraryStub()
110 *stub.mutable_gradient() = fdef_lib.gradient(); in GetFunctionDefLibraryStub()
623 FunctionDefLibrary& fdef_lib) { in PropagateTFDataAttrs() argument
660 for (const auto& func_def : fdef_lib.function()) { in PropagateTFDataAttrs()
668 for (FunctionDef& func_def : *fdef_lib.mutable_function()) { in PropagateTFDataAttrs()
/external/tensorflow/tensorflow/core/tpu/kernels/
Dtpu_compile.proto55 FunctionDefLibrary fdef_lib = 9; field