Home
last modified time | relevance | path

Searched refs:control_outputs (Results 1 – 25 of 26) sorted by relevance

12

/external/tensorflow/tensorflow/python/framework/
Dsubscribe.py83 control_outputs = {}
86 if control_input not in control_outputs:
87 control_outputs[control_input] = set()
88 control_outputs[control_input].add(op)
89 return control_outputs
101 control_outputs = self.calc_control_outputs(op.graph)
102 self.cache[op.graph] = control_outputs
104 control_outputs = self.cache[op.graph]
105 return control_outputs.get(op, [])
351 control_outputs = _ControlOutputCache()
[all …]
Dfunction_def_to_graph.py83 func_graph.control_outputs = [
Dfunc_graph.py189 self.control_outputs = []
1025 func_graph.control_outputs.extend(deps_control_manager.ops_which_must_run)
/external/tensorflow/tensorflow/core/framework/
Dgraph_to_functiondef.cc324 std::vector<const Node*> control_outputs; in GraphToFunctionDefHelper() local
340 control_outputs.push_back(node); in GraphToFunctionDefHelper()
367 control_outputs, control_output_names, in GraphToFunctionDefHelper()
381 const std::vector<const Node*>& control_outputs, in GraphToFunctionDef() argument
546 (control_outputs.size() != control_output_names.size())) { in GraphToFunctionDef()
548 "Expected number of control outputs (", control_outputs.size(), in GraphToFunctionDef()
553 for (int i = 0; i < control_outputs.size(); ++i) { in GraphToFunctionDef()
558 signature_name = control_outputs[i]->name(); in GraphToFunctionDef()
568 node_names.Lookup(control_outputs[i]->name()); in GraphToFunctionDef()
Dgraph_to_functiondef.h39 const std::vector<const Node*>& control_outputs,
/external/tensorflow/tensorflow/core/grappler/utils/
Dfunctions.cc43 std::vector<ControlOutput> control_outputs, const int graph_def_version, in GrapplerFunctionItem() argument
49 control_outputs_(std::move(control_outputs)), in GrapplerFunctionItem()
100 const std::vector<ControlOutput>& GrapplerFunctionItem::control_outputs() in control_outputs() function in tensorflow::grappler::GrapplerFunctionItem
275 std::vector<ControlOutput> control_outputs; in MakeGrapplerFunctionItem() local
276 control_outputs.reserve(func.control_ret_size()); in MakeGrapplerFunctionItem()
278 control_outputs.push_back({control_ret.first, control_ret.second}); in MakeGrapplerFunctionItem()
285 std::move(outputs), std::move(control_outputs), graph_def_version, in MakeGrapplerFunctionItem()
556 for (const ControlOutput& control_out : item.control_outputs()) { in MakeFunctionDef()
Dfunctions.h75 const std::vector<ControlOutput>& control_outputs() const;
100 std::vector<ControlOutput> control_outputs,
Dfunctions_test.cc503 const ControlOutput &ctrl = item.control_outputs()[0]; in TEST_F()
/external/tensorflow/tensorflow/python/client/
Dtf_session_helper.cc563 std::vector<TF_Operation*> control_outputs( in TF_OperationGetControlOutputs_wrapper() local
565 TF_OperationGetControlOutputs(oper, control_outputs.data(), in TF_OperationGetControlOutputs_wrapper()
566 control_outputs.size()); in TF_OperationGetControlOutputs_wrapper()
567 return control_outputs; in TF_OperationGetControlOutputs_wrapper()
588 const std::vector<TF_Operation*>* control_outputs, in TF_GraphToFunction_wrapper() argument
621 control_outputs == nullptr ? 0 : control_outputs->size(), in TF_GraphToFunction_wrapper()
622 control_outputs == nullptr ? nullptr : control_outputs->data(), in TF_GraphToFunction_wrapper()
Dtf_session_helper.h211 const std::vector<TF_Operation*>* control_outputs,
Dtf_session_wrapper.cc196 const std::vector<TF_Operation*> control_outputs, in PYBIND11_MODULE()
215 outputs, output_names_name_vector, &control_outputs, in PYBIND11_MODULE()
/external/tensorflow/tensorflow/compiler/jit/
Dencapsulate_xla_computations_pass.cc297 absl::flat_hash_set<Node*> control_outputs; in BuildXlaLaunchOps() local
303 control_outputs.insert(le->dst()); in BuildXlaLaunchOps()
319 AddControlOutputs(*output_node, &control_outputs); in BuildXlaLaunchOps()
345 control_outputs.erase(node); in BuildXlaLaunchOps()
366 for (Node* n : control_outputs) { in BuildXlaLaunchOps()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/
Dgraph-as-function-retval-of-arg.pbtxt41 # CHECK-SAME: control_outputs = ""
Dgraph-as-function-control-ret.pbtxt190 # CHECK-SAME: control_outputs = "var1_add,var2_add"
Dgraph-as-function.pbtxt8 # CHECK-SAME: control_outputs = ""
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/translate/
Dmlir_roundtrip_flags.h47 std::vector<string> control_outputs; member
Dtf_mlir_translate.cc71 ParseOutputArrayInfo(control_output_arrays, &specs.control_outputs)); in GraphdefToMlirImport()
81 for (const auto& control_output : specs.control_outputs) { in GraphdefToMlirImport()
Dimport_model.cc1801 llvm::ArrayRef<std::string> control_outputs,
1838 specs.control_outputs, &control_ret_nodes)); in Convert()
1854 mlir::interleave(specs.control_outputs, ss, ","); in Convert()
1855 auto control_outputs = in Convert() local
1860 b.getDictionaryAttr({inputs, outputs, control_outputs}))); in Convert()
2075 llvm::ArrayRef<std::string> control_outputs, in GetControlRetsFromFunctionGraph() argument
2077 if (control_outputs.empty()) return Status::OK(); in GetControlRetsFromFunctionGraph()
2080 for (auto control_and_idx : llvm::enumerate(control_outputs)) in GetControlRetsFromFunctionGraph()
2083 if (controls_to_idx.size() != control_outputs.size()) in GetControlRetsFromFunctionGraph()
2093 for (auto node_and_name : llvm::zip(*control_ret_nodes, control_outputs)) in GetControlRetsFromFunctionGraph()
/external/tensorflow/tensorflow/c/
Dc_api_function.cc155 int ncontrol_outputs, const TF_Operation* const* control_outputs, in TF_GraphToFunctionWithControlOutputs() argument
200 control_output_nodes.push_back(&control_outputs[i]->node); in TF_GraphToFunctionWithControlOutputs()
Dc_api.h486 TF_Operation* oper, TF_Operation** control_outputs,
1122 int ncontrol_outputs, const TF_Operation* const* control_outputs,
Dc_api.cc1215 TF_Operation** control_outputs, in TF_OperationGetControlOutputs() argument
1221 control_outputs[count] = ToOperation(edge->dst()); in TF_OperationGetControlOutputs()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Ddependency_optimizer.cc512 std::vector<gtl::InlinedVector<std::pair<int, int>, 2>> control_outputs( in TransitiveReduction() local
537 control_outputs[input_node_idx].emplace_back(node_idx, input_slot); in TransitiveReduction()
573 for (const auto& control_output : control_outputs[source]) { in TransitiveReduction()
/external/tensorflow/tensorflow/python/eager/
Dwrap_function.py327 pruned_graph.control_outputs.extend(
Dwrap_function_test.py353 [operation.name for operation in f_pruned.graph.control_outputs])
/external/tensorflow/tensorflow/python/saved_model/
Dload_test.py185 exported_graph.control_outputs)
195 imported_graph.control_outputs)

12