Home
last modified time | relevance | path

Searched refs:OutputTensor (Results 1 – 25 of 32) sorted by relevance

12

/external/tensorflow/tensorflow/core/graph/
Dwhile_context.h38 std::vector<Node*> exit_nodes, OutputTensor cond_output,
39 std::vector<OutputTensor> body_inputs,
40 std::vector<OutputTensor> body_outputs);
45 const OutputTensor& cond_output() const { return cond_output_; } in cond_output()
46 const std::vector<OutputTensor>& body_inputs() const { return body_inputs_; } in body_inputs()
47 const std::vector<OutputTensor>& body_outputs() const { in body_outputs()
67 const OutputTensor cond_output_;
70 const std::vector<OutputTensor> body_inputs_;
71 const std::vector<OutputTensor> body_outputs_;
Dwhile_context.cc23 OutputTensor cond_output, in WhileContext()
24 std::vector<OutputTensor> body_inputs, in WhileContext()
25 std::vector<OutputTensor> body_outputs) in WhileContext()
Dgraph.h64 struct OutputTensor;
223 Status input_tensor(int idx, OutputTensor* t) const;
362 struct OutputTensor { struct
366 OutputTensor(Node* n, int i) : node(n), index(i) {} in OutputTensor() argument
367 OutputTensor() : node(nullptr), index(0) {} in OutputTensor() function
371 bool operator==(const OutputTensor& other) const;
376 uint64 operator()(OutputTensor const& s) const; argument
672 OutputTensor cond_output,
673 std::vector<OutputTensor> body_inputs,
674 std::vector<OutputTensor> body_outputs,
Dgraph.cc323 Status Node::input_tensor(int idx, OutputTensor* t) const { in input_tensor()
327 *t = OutputTensor(e->src(), e->src_output()); in input_tensor()
360 bool OutputTensor::operator==(const OutputTensor& other) const { in operator ==()
364 uint64 OutputTensor::Hash::operator()(OutputTensor const& s) const { in operator ()()
827 OutputTensor cond_output, in AddWhileContext()
828 std::vector<OutputTensor> body_inputs, in AddWhileContext()
829 std::vector<OutputTensor> body_outputs, in AddWhileContext()
Dnode_builder.h53 NodeOut(OutputTensor t);
Dnode_builder.cc32 NodeBuilder::NodeOut::NodeOut(OutputTensor t) : NodeOut(t.node, t.index) {} in NodeOut()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dfunctionalize_cond.h61 OutputTensor output_tensor;
87 bool operator()(const OutputTensor& lhs, const OutputTensor& rhs) const;
92 using CondState = std::map<OutputTensor, BranchType, OutputTensorLess>;
125 BranchType FindBranchOf(CondId id, OutputTensor predicate) const;
188 const OutputTensor& predicate);
260 std::unordered_map<Node*, OutputTensor> merge_to_predicate_;
263 std::unordered_map<Node*, OutputTensor> merge_to_replacement_;
Dfunctionalize_cond.cc68 typedef std::tuple<StateMap::CondId, StateMap::AncestorId, OutputTensor>
86 string DebugString(const OutputTensor& tensor) { in DebugString()
110 const OutputTensor& pred = pred_branch.first; in DebugString()
122 Status GetSwitchPredicate(const Node& switch_node, OutputTensor* pred) { in GetSwitchPredicate()
130 *pred = OutputTensor(pred_edge->src(), pred_edge->src_output()); in GetSwitchPredicate()
134 Status GetSwitchValue(const Node& switch_node, OutputTensor* val) { in GetSwitchValue()
137 *val = OutputTensor(val_edge->src(), val_edge->src_output()); in GetSwitchValue()
141 bool StateMap::OutputTensorLess::operator()(const OutputTensor& lhs, in operator ()()
142 const OutputTensor& rhs) const { in operator ()()
164 {std::make_pair(OutputTensor(nullptr, -1), BranchType::kNeither)}); in StateMap()
[all …]
Dfunctionalize_cond_test.cc86 ss.insert(std::make_pair(OutputTensor(pred, 0), BranchType::kThenBranch)); in TEST_F()
92 ss.insert(std::make_pair(OutputTensor(pred, 0), BranchType::kElseBranch)); in TEST_F()
/external/tensorflow/tensorflow/compiler/jit/
Dclone_constants_for_better_clustering_test.cc82 OutputTensor tr0_perm; in TEST()
85 OutputTensor tr1_perm; in TEST()
108 OutputTensor tr0_perm; in TEST()
111 OutputTensor tr1_perm; in TEST()
138 OutputTensor tr0_perm; in TEST()
142 OutputTensor tr1_perm; in TEST()
169 OutputTensor tr0_perm; in TEST()
172 OutputTensor tr1_perm; in TEST()
200 OutputTensor tr0_perm; in TEST()
203 OutputTensor tr1_perm; in TEST()
Dencapsulate_subgraphs_pass.cc134 uint64 operator()(std::pair<OutputTensor, InputTensor> const& s) const { in operator ()()
135 return Hash64Combine(OutputTensor::Hash()(s.first), in operator ()()
282 std::unordered_map<OutputTensor, int, OutputTensor::Hash> args_by_src_;
289 std::unordered_map<OutputTensor, int, OutputTensor::Hash> results_;
358 std::unordered_set<std::pair<OutputTensor, InputTensor>,
442 return results_.at(OutputTensor(edge->src(), edge->src_output())); in GetResultIndexForEdge()
473 std::unordered_map<OutputTensor, int, OutputTensor::Hash>::iterator iter; in RecordArg()
476 OutputTensor(src_node, src_slot), args_by_src_.size()); in RecordArg()
518 std::unordered_map<OutputTensor, int, OutputTensor::Hash>::iterator iter; in RecordResult()
521 results_.emplace(OutputTensor(src_node, src_slot), results_.size()); in RecordResult()
[all …]
Dencapsulate_subgraphs_pass.h52 const std::vector<OutputTensor>& arg_source_tensors,
Dextract_outside_compilation_pass.h55 Status operator()(const std::vector<OutputTensor>&,
Dextract_outside_compilation_pass_test.cc61 std::vector<OutputTensor> arg_source_tensors; in TEST()
132 std::vector<OutputTensor> arg_source_tensors; in TEST()
158 std::vector<OutputTensor> arg_source_tensors; in TEST()
182 std::vector<OutputTensor> arg_source_tensors; in TEST()
214 std::vector<OutputTensor> arg_source_tensors; in TEST()
/external/tensorflow/tensorflow/core/framework/
Dgraph_to_functiondef.h36 const std::vector<OutputTensor>& inputs,
37 const std::vector<OutputTensor>& outputs,
Dgraph_to_functiondef.cc306 std::vector<OutputTensor>* args_or_retvals) { in GraphToFunctionDefHelper()
322 std::vector<OutputTensor> inputs; in GraphToFunctionDefHelper()
323 std::vector<OutputTensor> outputs; in GraphToFunctionDefHelper()
349 [](const std::vector<OutputTensor>& args_or_retvals, in GraphToFunctionDefHelper()
378 const std::vector<OutputTensor>& inputs, in GraphToFunctionDef()
379 const std::vector<OutputTensor>& outputs, in GraphToFunctionDef()
/external/tensorflow/tensorflow/cc/ops/
Dwhile_loop.cc30 OutputTensor ToOutputTensor(const Output& output) { in ToOutputTensor()
31 return OutputTensor(output.node(), output.index()); in ToOutputTensor()
35 std::vector<OutputTensor> ToOutputTensors(const std::vector<Output>& outputs) { in ToOutputTensors()
36 std::vector<OutputTensor> result(outputs.size()); in ToOutputTensors()
/external/tensorflow/tensorflow/c/
Dc_api_function.cc52 const TF_Output* inputs, std::vector<OutputTensor>* input_tensors, in ProcessInputs()
89 std::vector<OutputTensor>* output_tensors) in ProcessOutputs()
161 std::vector<tensorflow::OutputTensor> input_tensors; in TF_GraphToFunctionWithControlOutputs()
168 std::vector<tensorflow::OutputTensor> output_tensors; in TF_GraphToFunctionWithControlOutputs()
/external/tensorflow/tensorflow/compiler/mlir/tensorflow/translate/
Dimport_model.cc195 absl::InlinedVector<OutputTensor, 4>* arg_nodes,
196 absl::InlinedVector<OutputTensor, 4>* ret_nodes,
209 const absl::InlinedVector<OutputTensor, 4>& arg_nodes,
210 const absl::InlinedVector<OutputTensor, 4>& ret_nodes,
325 const absl::InlinedVector<OutputTensor, 4>& arg_nodes,
326 const absl::InlinedVector<OutputTensor, 4>& ret_nodes,
1030 const FunctionBody& fbody, absl::InlinedVector<OutputTensor, 4>* arg_nodes, in GetArgsAndRetsFromFunctionBody() argument
1031 absl::InlinedVector<OutputTensor, 4>* ret_nodes, in GetArgsAndRetsFromFunctionBody()
1136 absl::InlinedVector<OutputTensor, 4> arg_nodes; in ConvertLibFunction()
1137 absl::InlinedVector<OutputTensor, 4> ret_nodes; in ConvertLibFunction()
[all …]
/external/tensorflow/tensorflow/cc/framework/
Dwhile_gradients.cc31 Output ToOutput(OutputTensor output_tensor) { in ToOutput()
36 const std::vector<OutputTensor>& output_tensors) { in ToOutputVector()
/external/tensorflow/tensorflow/core/common_runtime/
Deval_const_tensor.h57 OutputTensor tensor, const ShapeRefiner& refiner,
Dlower_while_op.cc387 OutputTensor resource_tensor; in CreateExitNodes()
470 OutputTensor resource; in UpdateConsumers()
Dlower_if_op.cc82 OutputTensor pred_;
Dlower_case_op.cc80 OutputTensor branch_index_;
Deval_const_tensor.cc311 Status EvaluateConstantTensor(OutputTensor tensor, const ShapeRefiner& refiner, in EvaluateConstantTensor()

12