Home
last modified time | relevance | path

Searched refs:flib (Results 1 – 25 of 41) sorted by relevance

12

/external/tensorflow/tensorflow/core/grappler/utils/
Dfunctions_test.cc128 FunctionLibraryDefinition flib(OpRegistry::Global(), FunctionDefLibrary()); in TEST_F() local
133 flib, TF_GRAPH_DEF_VERSION, &item)); in TEST_F()
209 FunctionLibraryDefinition flib(OpRegistry::Global(), FunctionDefLibrary()); in TEST_F() local
214 flib, TF_GRAPH_DEF_VERSION, &item)); in TEST_F()
268 FunctionLibraryDefinition flib(OpRegistry::Global(), FunctionDefLibrary()); in TEST_F() local
269 TF_ASSERT_OK(flib.AddFunctionDef(FunctionDefHelper::Define( in TEST_F()
309 flib, TF_GRAPH_DEF_VERSION, &item)); in TEST_F()
369 FunctionLibraryDefinition flib(OpRegistry::Global(), FunctionDefLibrary()); in TEST_F() local
374 flib, TF_GRAPH_DEF_VERSION, &item)); in TEST_F()
421 FunctionLibraryDefinition flib(OpRegistry::Global(), FunctionDefLibrary()); in TEST_F() local
[all …]
Dfunctions.cc216 const FunctionLibraryDefinition& flib, in MakeGrapplerFunctionItem() argument
237 FunctionDefToBodyHelper(func, func_instantiation_attr, &flib, &fbody)); in MakeGrapplerFunctionItem()
244 *function_body.mutable_library() = flib.ReachableDefinitions(func).ToProto(); in MakeGrapplerFunctionItem()
249 flib.num_functions() - function_body.library().function_size(), in MakeGrapplerFunctionItem()
291 const FunctionLibraryDefinition& flib, in MakeGrapplerFunctionItem() argument
294 return MakeGrapplerFunctionItem(func, AttrSlice(), flib, graph_def_version, in MakeGrapplerFunctionItem()
402 const FunctionLibraryDefinition& flib);
429 const GrapplerFunctionItem& item, const FunctionLibraryDefinition& flib) { in Initialize() argument
439 TF_RETURN_IF_ERROR(flib.LookUp(node.op(), &registration)); in Initialize()
505 const FunctionLibraryDefinition& flib, in MakeFunctionDef() argument
[all …]
Dfunctions.h158 const FunctionLibraryDefinition& flib,
168 const FunctionLibraryDefinition& flib,
175 const FunctionLibraryDefinition& flib,
/external/tensorflow/tensorflow/compiler/jit/
Dcompilability_check_util_test.cc136 FunctionDefLibrary flib; in TEST_F() local
137 *flib.add_function() = FunctionDefHelper::Define( in TEST_F()
144 flib_def_.reset(new FunctionLibraryDefinition(OpRegistry::Global(), flib)); in TEST_F()
177 FunctionDefLibrary flib; in TEST_F() local
178 *flib.add_function() = FunctionDefHelper::Define( in TEST_F()
188 *flib.add_function() = FunctionDefHelper::Define( in TEST_F()
196 flib_def_.reset(new FunctionLibraryDefinition(OpRegistry::Global(), flib)); in TEST_F()
257 FunctionDefLibrary flib; in TEST_F() local
258 *flib.add_function() = FunctionDefHelper::Define( in TEST_F()
265 *flib.add_function() = FunctionDefHelper::Define( in TEST_F()
[all …]
Dmark_for_compilation_pass_test_helper.cc68 FunctionDefLibrary flib; in MarkForCompilation() local
69 FunctionLibraryDefinition flib_def((*graph)->op_registry(), flib); in MarkForCompilation()
Dxla_kernel_creator_test.cc59 void Init(const std::vector<FunctionDef>& flib) { in Init() argument
68 for (const auto& fdef : flib) { in Init()
Dencapsulate_xla_computations_pass_test.cc302 FunctionDefLibrary flib; in TEST() local
303 TF_ASSERT_OK(GraphToFunctionDef(*body_graph, "launch0", flib.add_function())); in TEST()
305 FunctionLibraryDefinition flib_def(OpRegistry::Global(), flib); in TEST()
311 TF_EXPECT_OK(scope.graph()->AddFunctionLibrary(flib)); in TEST()
Dmark_for_compilation_pass_test.cc204 FunctionDefLibrary flib; in TEST() local
205 *flib.add_function() = compilable; in TEST()
206 *flib.add_function() = uncompilable; in TEST()
207 FunctionLibraryDefinition flib_def(OpRegistry::Global(), flib); in TEST()
244 FunctionDefLibrary flib; in TEST() local
245 *flib.add_function() = compilable; in TEST()
246 *flib.add_function() = uncompilable; in TEST()
247 *flib.add_function() = noinline; in TEST()
248 FunctionLibraryDefinition flib_def(OpRegistry::Global(), flib); in TEST()
283 FunctionDefLibrary flib; in TEST() local
[all …]
Dxla_cluster_util_test.cc140 FunctionDefLibrary flib; in GetNodesRelatedToRefVarsSorted() local
141 FunctionLibraryDefinition flib_def_local(OpRegistry::Global(), flib); in GetNodesRelatedToRefVarsSorted()
/external/tensorflow/tensorflow/core/grappler/optimizers/data/
Dauto_shard.cc240 const FunctionLibraryDefinition& flib) { in ReaderOpInFunction() argument
241 const FunctionDef* func = flib.Find(node.attr().at("f").func().name()); in ReaderOpInFunction()
250 ReaderOpInFunction(func->node_def(i), flib)) { in ReaderOpInFunction()
336 FunctionLibraryDefinition* flib, in RecursivelyHandleOp() argument
348 flib, graph, nodes_to_delete)); in RecursivelyHandleOp()
362 ReaderOpInFunction(node, *flib)) { in RecursivelyHandleOp()
386 return RecursivelyHandleOp(*input_node, num_workers, index, flib, graph, in RecursivelyHandleOp()
398 FunctionLibraryDefinition flib(OpRegistry::Global(), item.graph.library()); in OptimizeGraph() local
417 &flib, &graph, &nodes_to_delete)); in OptimizeGraph()
427 Status s = RecursivelyHandleOp(*sink_node, num_workers, index, &flib, in OptimizeGraph()
Dslack_test.cc155 FunctionLibraryDefinition flib(OpRegistry::Global(), lib_def); in TEST() local
158 MakeGrapplerFunctionItem(*fdef, flib, /*graph_def_version=*/27, &item)); in TEST()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/translate/
Dexport_graphdef.cc195 FunctionDefLibrary* flib);
202 mlir::FuncOp function, FunctionDefLibrary* flib,
520 mlir::FuncOp function, FunctionDefLibrary* flib, in Convert() argument
565 TF_RETURN_IF_ERROR(graph->AddFunctionLibrary(*flib)); in Convert()
652 TF_RETURN_IF_ERROR(ConvertLibFunction(configs, tf_dialect, func, flib)); in Convert()
653 TF_RETURN_IF_ERROR(graph->AddFunctionLibrary(*flib)); in Convert()
719 FunctionDefLibrary* flib) { in ConvertLibFunction() argument
723 FunctionLibraryDefinition flib_def(&empty_registry, *flib); in ConvertLibFunction()
730 Exporter::Convert(configs, tf_dialect, function, flib, in ConvertLibFunction()
759 ConvertLibFunction(configs, tf_dialect, grad_func, flib)); in ConvertLibFunction()
[all …]
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dmeta_optimizer.cc623 FunctionLibraryDefinition flib = minimized_flib(*optimized_graph); in Optimize() local
683 if (!flib.Contains(func_name)) continue; in Optimize()
707 func, flib, trimmed_item.graph.versions().producer(), &func_item)); in Optimize()
763 if (flib.Find(func_def.signature().name()) == nullptr) { in Optimize()
764 TF_RETURN_IF_ERROR(flib.AddFunctionDef(func_def)); in Optimize()
771 TF_RETURN_IF_ERROR(MakeFunctionDef(func_item, flib, &optimized_func)); in Optimize()
774 TF_RETURN_IF_ERROR(flib.ReplaceFunction(func_name, optimized_func)); in Optimize()
779 *optimized_graph->mutable_library() = flib.ToProto(); in Optimize()
844 FunctionLibraryDefinition* flib, const DeviceSet& device_set, in OptimizeGraph() argument
873 if (flib) { in OptimizeGraph()
[all …]
Dfunction_optimizer.cc440 FunctionDefLibrary PruneFunctionLibrary(const FunctionLibraryDefinition& flib, in PruneFunctionLibrary() argument
443 flib.ReachableDefinitions(optimized_graph); in PruneFunctionLibrary()
446 static_cast<int>(flib.num_functions()); in PruneFunctionLibrary()
706 const auto& flib = ctx->function_library(); in SpecializeFunction() local
712 func, func_instantiation_attr, flib, ctx->graph_version(), &item)); in SpecializeFunction()
737 TF_RETURN_IF_ERROR(MakeFunctionDef(item, flib, &specialized_func)); in SpecializeFunction()
742 if (flib.Contains(specialized_func_name)) { in SpecializeFunction()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dgraph_compiler.h59 FunctionLibraryRuntime* flib, in GraphCompiler() argument
63 flib_(flib), in GraphCompiler()
Dgraph_compiler.cc196 Status GetFunctionNameAndAttr(const FunctionLibraryRuntime& flib, in GetFunctionNameAndAttr() argument
211 if (flib.GetFunctionLibraryDefinition()->Find(node.def().op())) { in GetFunctionNameAndAttr()
/external/tensorflow/tensorflow/core/common_runtime/
Dgraph_execution_state.h55 explicit ClientGraph(std::unique_ptr<FunctionLibraryDefinition> flib, in ClientGraph()
58 : flib_def(std::move(flib)), in ClientGraph()
Dfunction_threadpool_test.cc52 void Init(const std::vector<FunctionDef>& flib, in Init() argument
62 for (const auto& fdef : flib) *(proto.add_function()) = fdef; in Init()
Dexecutor.h246 Status CreateNonCachedKernel(Device* device, FunctionLibraryRuntime* flib,
Dconstant_folding_test.cc337 FunctionDefLibrary flib; in TEST_F() local
338 *flib.add_function() = test::function::XTimesTwo(); in TEST_F()
340 FunctionLibraryDefinition flib_def(OpRegistry::Global(), flib); in TEST_F()
345 TF_EXPECT_OK(s.graph()->AddFunctionLibrary(flib)); in TEST_F()
/external/tensorflow/tensorflow/tools/optimization/
Doptimization_pass_runner.cc100 FunctionDefLibrary flib; in Run() local
107 new FunctionLibraryDefinition((*options.graph)->op_registry(), flib)); in Run()
/external/tensorflow/tensorflow/core/kernels/
Dpartitioned_function_ops.cc136 const FunctionLibraryDefinition* flib = lib.GetFunctionLibraryDefinition(); in FillOutputDevices() local
137 const FunctionDef* fdef = flib->Find(func_->name()); in FillOutputDevices()
/external/tensorflow/tensorflow/core/framework/
Dfunction.cc1568 const FunctionLibraryDefinition& flib, in ReachableFunctions() argument
1585 const FunctionDef* func = flib.Find(func_name); in ReachableFunctions()
1596 for (const auto& func_name : flib.ListFunctionNames()) { in ReachableFunctions()
1597 const auto& func_def = flib.Find(func_name); in ReachableFunctions()
1651 const string grad_func_name = flib.FindGradient(func_name); in ReachableFunctions()
1659 const FunctionLibraryDefinition& flib, in ReachableFunctionLibraryDefinition() argument
1661 std::set<string> reachable_funcs = ReachableFunctions(flib, nodes); in ReachableFunctionLibraryDefinition()
1663 FunctionLibraryDefinition reachable_flib(flib.default_registry(), in ReachableFunctionLibraryDefinition()
1669 Status added = reachable_flib.CopyFunctionDefFrom(func_name, flib); in ReachableFunctionLibraryDefinition()
1672 const string grad_func_name = flib.FindGradient(func_name); in ReachableFunctionLibraryDefinition()
Dop_kernel.cc213 const NodeDef* node_def, const OpDef* op_def, FunctionLibraryRuntime* flib, in OpKernelConstruction() argument
224 flib_(flib), in OpKernelConstruction()
1544 Allocator* allocator, FunctionLibraryRuntime* flib, in CreateOpKernel() argument
1547 return CreateOpKernel(std::move(device_type), device, allocator, flib, in CreateOpKernel()
1553 Allocator* allocator, FunctionLibraryRuntime* flib, in CreateOpKernel() argument
1609 &node_def, op_def, flib, resource_mgr, inputs, in CreateOpKernel()
/external/tensorflow/tensorflow/core/kernels/data/
Ddataset_utils_test.cc192 for (const auto& flib : {flib_0, flib_1}) { in TEST()
193 EXPECT_TRUE(FunctionDefsEqual(*flib.Find("0"), make_fn_b("0"))); in TEST()
194 EXPECT_TRUE(FunctionDefsEqual(*flib.Find("1"), make_fn_a("1"))); in TEST()
195 EXPECT_TRUE(FunctionDefsEqual(*flib.Find("2"), make_fn_a("2"))); in TEST()
196 EXPECT_TRUE(FunctionDefsEqual(*flib.Find("3"), make_fn_b("3"))); in TEST()

12