Home
last modified time | relevance | path

Searched refs:function_def (Results 1 – 23 of 23) sorted by relevance

/external/tensorflow/tensorflow/core/kernels/data/
Dgraph_rewrite_dataset.cc101 void AddFakeSinks(FunctionDef* function_def) { in AddFakeSinks() argument
103 for (const auto& output : function_def->signature().output_arg()) { in AddFakeSinks()
104 NodeDef* node = function_def->add_node_def(); in AddFakeSinks()
106 strings::StrCat("FakeSink", counter++), function_def, node); in AddFakeSinks()
108 node->add_input(function_def->ret().at(output.name())); in AddFakeSinks()
111 (*function_def->mutable_ret())[output.name()] = in AddFakeSinks()
116 void RemoveFakeSinks(FunctionDef* function_def) { in RemoveFakeSinks() argument
119 for (const auto& node : function_def->node_def()) { in RemoveFakeSinks()
124 for (const auto& output_arg : function_def->signature().output_arg()) { in RemoveFakeSinks()
125 const string& tensor = function_def->ret().at(output_arg.name()); in RemoveFakeSinks()
[all …]
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dfunction_api_info.cc29 Status FunctionApiInfo::Init(const FunctionDef& function_def) { in Init() argument
31 for (const auto& attr : function_def.attr()) { in Init()
48 input_arg_dtypes_.reserve(function_def.signature().input_arg_size()); in Init()
49 for (const auto& input_arg : function_def.signature().input_arg()) { in Init()
52 output_arg_dtypes_.reserve(function_def.signature().output_arg_size()); in Init()
53 for (const auto& output_arg : function_def.signature().output_arg()) { in Init()
59 "Function '", function_def.signature().name(), in Init()
Dfunction_api_info.h42 Status Init(const FunctionDef& function_def);
/external/tensorflow/tensorflow/core/common_runtime/eager/
Dkernel_and_device.cc83 const FunctionDef* function_def; in Init() local
88 function_def = pflr_->GetFLR(host_cpu_device_->name()) in Init()
92 function_def = flr_->GetFunctionLibraryDefinition()->Find(ndef.op()); in Init()
95 if (function_def != nullptr) { in Init()
96 op_def = &(function_def->signature()); in Init()
139 options.config_proto, function_def->signature().name(), in Init()
Dexecute.cc229 const FunctionDef* function_def = in GetOutputDTypes() local
231 if (function_def != nullptr) { in GetOutputDTypes()
232 op_def = &(function_def->signature()); in GetOutputDTypes()
/external/tensorflow/tensorflow/core/grappler/optimizers/data/
Dfunction_utils.cc175 const FunctionDef& function_def, bool skip_assert) { in IsFunctionStateful() argument
176 if (!function_def.signature().is_stateful()) return false; in IsFunctionStateful()
178 for (const NodeDef& node_def : function_def.node_def()) { in IsFunctionStateful()
Dfunction_utils.h110 const FunctionDef& function_def,
Dvectorization_utils_test.cc118 string GetRetval(const FunctionDef& function_def, int index) { in GetRetval() argument
119 return function_def.ret().at( in GetRetval()
120 function_def.signature().output_arg(index).name()); in GetRetval()
/external/tensorflow/tensorflow/core/framework/
Dgraph_def_util_test.cc246 FunctionDef* function_def = graph_def.mutable_library()->add_function(); in TEST() local
247 function_def->mutable_signature()->set_name("F"); in TEST()
249 function_def->add_node_def()->set_op(op); in TEST()
Ddataset.h202 const FunctionDef* function_def = flib_def.Find(function_name); in EnsureFunctionIsStateless() local
203 if (!function_def) { in EnsureFunctionIsStateless()
207 for (const NodeDef& node_def : function_def->node_def()) { in EnsureFunctionIsStateless()
/external/tensorflow/tensorflow/lite/python/
Dop_hint.py784 def _find_children_hints_in_while_loop(function_def, nodes_mapping): argument
797 for node in function_def.node_def:
802 name_to_seq_num = _extract_topology_sequence_mapping(function_def.node_def)
853 for function_def in graph_def.library.function:
854 if function_def.signature.name == body_name:
855 function_inputs = function_def.signature.input_arg
863 function_def, nodes_mapping)
/external/tensorflow/tensorflow/compiler/jit/
Dcreate_xla_launch_op.cc70 const FunctionDef* function_def = in CompilationRequested() local
72 if (function_def == nullptr) { in CompilationRequested()
/external/tensorflow/tensorflow/core/common_runtime/
Dshape_refiner.cc133 const tensorflow::FunctionDef* function_def, bool keep_nested_shapes, in InferShapesForFunction() argument
136 auto it = functions_.find(function_def); in InferShapesForFunction()
142 *function_def, outer_context->get_context()->attrs(), in InferShapesForFunction()
153 functions_[function_def].reset(new_graph); in InferShapesForFunction()
182 for (const auto& node_def : function_def->node_def()) { in InferShapesForFunction()
Dshape_refiner.h214 Status InferShapesForFunction(const tensorflow::FunctionDef* function_def,
/external/tensorflow/tensorflow/python/framework/
Dmeta_graph.py481 for function_def in meta_graph_def.graph_def.library.function:
482 op_name_to_function[function_def.signature.name] = function_def
506 for function_def in meta_graph_def.graph_def.library.function:
507 for function_node_def in function_def.node_def:
Dfunction_def_to_graph_test.py242 fdef = fn.get_concrete_function(inp).function_def
Dmeta_graph_test.py235 for function_def in meta_graph_def.graph_def.library.function:
236 for node_def in function_def.node_def:
/external/tensorflow/tensorflow/python/eager/
Dfunction.py343 function_def = function_pb2.FunctionDef()
344 function_def.ParseFromString(compat.as_bytes(proto_data))
348 self.definition = function_def
349 self.name = compat.as_bytes(function_def.signature.name)
350 self.signature = function_def.signature
698 def function_def(self): member in ConcreteFunction
/external/tensorflow/tensorflow/c/eager/
Dc_api.cc841 tensorflow::FunctionDef function_def; in TFE_ContextAddFunctionDef() local
842 if (!function_def.ParseFromArray(serialized_function_def, size)) { in TFE_ContextAddFunctionDef()
847 status->status = ctx->context.AddFunctionDef(function_def); in TFE_ContextAddFunctionDef()
Dc_api_test.cc1346 string function_def = MatMulFunction(); in FunctionDefAndExecute() local
1347 TFE_ContextAddFunctionDef(ctx, function_def.data(), function_def.size(), in FunctionDefAndExecute()
1392 string function_def = MatMulFunction(); in BM_ExecuteFunction() local
1393 TFE_ContextAddFunctionDef(ctx, function_def.data(), function_def.size(), in BM_ExecuteFunction()
/external/tensorflow/tensorflow/core/distributed_runtime/eager/
Deager_service_impl.cc272 return context->Context()->AddFunctionDef(request->function_def()); in RegisterFunction()
/external/tensorflow/tensorflow/core/protobuf/
Deager_service.proto126 FunctionDef function_def = 2; field
/external/tensorflow/tensorflow/core/grappler/costs/
Dgraph_properties.cc1041 const FunctionDef* function_def = in AddFunction() local
1046 MakeGrapplerFunctionItem(*function_def, function_library_, in AddFunction()
1064 fun_to_grappler_function_item_[function_def->signature().name()] = in AddFunction()