/external/tensorflow/tensorflow/contrib/copy_graph/python/util/ |
D | copy_elements.py | 169 new_op = copy_op_to_graph(op, to_graph, variables, scope) 171 new_tensor = new_op.outputs[output_index] 217 new_op = ops.Operation(new_node_def, to_graph, new_inputs, output_types, 221 to_graph._add_op(new_op) # pylint: disable=protected-access 222 to_graph._record_op_seen_by_control_dependencies(new_op) 224 new_op._set_device(device_function(new_op)) 226 return new_op
|
/external/tensorflow/tensorflow/contrib/lite/toco/ |
D | export_tensorflow.cc | 1376 auto* new_op = tensorflow_graph->add_node(); in ConvertSpaceToBatchNDOperator() local 1377 new_op->set_op("SpaceToBatchND"); in ConvertSpaceToBatchNDOperator() 1378 new_op->set_name(src_op.outputs[0]); in ConvertSpaceToBatchNDOperator() 1380 *new_op->add_input() = src_op.inputs[0]; in ConvertSpaceToBatchNDOperator() 1381 *new_op->add_input() = src_op.inputs[1]; in ConvertSpaceToBatchNDOperator() 1382 *new_op->add_input() = src_op.inputs[2]; in ConvertSpaceToBatchNDOperator() 1384 (*new_op->mutable_attr())["T"].set_type(params_type); in ConvertSpaceToBatchNDOperator() 1385 (*new_op->mutable_attr())["Tblock_shape"].set_type(DT_INT32); in ConvertSpaceToBatchNDOperator() 1386 (*new_op->mutable_attr())["Tpaddings"].set_type(DT_INT32); in ConvertSpaceToBatchNDOperator() 1392 auto* new_op = tensorflow_graph->add_node(); in ConvertBatchToSpaceNDOperator() local [all …]
|
/external/tensorflow/tensorflow/contrib/graph_editor/ |
D | select.py | 436 for new_op in new_t.consumers(): 437 if new_op not in result and is_within(new_op): 438 new_wave.add(new_op) 440 for new_op in control_outputs.get(op): 441 if new_op not in result and is_within(new_op): 442 new_wave.add(new_op) 504 for new_op in op.control_inputs: 505 if new_op not in result and is_within(new_op): 506 new_wave.add(new_op)
|
/external/pdfium/core/fpdfapi/page/ |
D | cpdf_psengine_unittest.cpp | 46 PDF_PSOP new_op = new_psop->GetOp(); in TEST() local 47 EXPECT_EQ(kTestData[i].op, new_op); in TEST() 48 if (new_op == PSOP_CONST) { in TEST()
|
/external/tensorflow/tensorflow/core/framework/ |
D | op_def_util.h | 57 Status OpDefCompatible(const OpDef& old_op, const OpDef& new_op); 64 const OpDef& new_op); 68 Status OpDefAttrDefaultsUnchanged(const OpDef& old_op, const OpDef& new_op);
|
D | op_def_util.cc | 592 Status OpDefCompatible(const OpDef& old_op, const OpDef& new_op) { in OpDefCompatible() argument 597 "; new: ", SummarizeOpDef(new_op)); \ in OpDefCompatible() 600 VALIDATE(old_op.name() == new_op.name(), "Name mismatch"); in OpDefCompatible() 604 FillAttrMap(new_op, &new_attrs); in OpDefCompatible() 620 for (const auto& new_attr : new_op.attr()) { in OpDefCompatible() 631 new_op.input_arg(), old_attrs, new_attrs, &new_in_ref, false /* names */); in OpDefCompatible() 646 ComputeArgSignature(new_op.output_arg(), old_attrs, new_attrs, in OpDefCompatible() 663 const OpDef& new_op) { in OpDefAddedDefaultsUnchanged() argument 666 FillAttrMap(new_op, &new_attrs); in OpDefAddedDefaultsUnchanged() 678 "' in op: ", SummarizeOpDef(new_op)); in OpDefAddedDefaultsUnchanged() [all …]
|
/external/tensorflow/tensorflow/core/grappler/optimizers/ |
D | arithmetic_optimizer.cc | 1008 NodeDef* new_op = AddNode(*node, "fused", /*copy_node=*/true); in TrySimplifyAndReplaceUses() local 1012 FlipBooleanAttr(attr_a, new_op); in TrySimplifyAndReplaceUses() 1013 new_op->set_input(0, a->input(0)); in TrySimplifyAndReplaceUses() 1014 node_map_->UpdateInput(new_op->name(), a->name(), a->input(0)); in TrySimplifyAndReplaceUses() 1015 AddFrameControlDeps(node, {new_op}, a->input(0), {new_op}); in TrySimplifyAndReplaceUses() 1020 FlipBooleanAttr(attr_b, new_op); in TrySimplifyAndReplaceUses() 1021 new_op->set_input(1, b->input(0)); in TrySimplifyAndReplaceUses() 1022 node_map_->UpdateInput(new_op->name(), b->name(), b->input(0)); in TrySimplifyAndReplaceUses() 1024 AddFrameControlDeps(node, {new_op}, b->input(0), {new_op}); in TrySimplifyAndReplaceUses() 1041 NodeDef* new_op = in TrySimplifyAndReplaceUses() local [all …]
|
/external/mesa3d/src/compiler/glsl/ |
D | opt_algebraic.cpp | 432 enum ir_expression_operation new_op = ir_unop_logic_not; in handle_expression() local 438 case ir_binop_less: new_op = ir_binop_gequal; break; in handle_expression() 439 case ir_binop_greater: new_op = ir_binop_lequal; break; in handle_expression() 440 case ir_binop_lequal: new_op = ir_binop_greater; break; in handle_expression() 441 case ir_binop_gequal: new_op = ir_binop_less; break; in handle_expression() 442 case ir_binop_equal: new_op = ir_binop_nequal; break; in handle_expression() 443 case ir_binop_nequal: new_op = ir_binop_equal; break; in handle_expression() 444 case ir_binop_all_equal: new_op = ir_binop_any_nequal; break; in handle_expression() 445 case ir_binop_any_nequal: new_op = ir_binop_all_equal; break; in handle_expression() 453 if (new_op != ir_unop_logic_not) { in handle_expression() [all …]
|
/external/tensorflow/tensorflow/python/framework/ |
D | importer.py | 303 …for new_op in graph._add_new_tf_operations(compute_devices=False): # pylint: disable=protected-ac… 304 colocation_names = _GetColocationNames(new_op) 306 colocation_pairs[new_op] = colocation_names 311 with _MaybeDevice(new_op.device): 312 graph._apply_device_functions(new_op) # pylint: disable=protected-access
|
/external/tensorflow/tensorflow/contrib/lite/toco/tflite/ |
D | import.cc | 115 auto new_op = ops_by_name.at(opname)->Deserialize( in ImportOperators() local 117 model->operators.emplace_back(new_op.release()); in ImportOperators()
|
/external/tensorflow/tensorflow/python/ops/ |
D | variables.py | 870 new_op = op_cache.get(op.name) 871 if new_op is None: 872 new_op = self._safe_initial_value_from_op(op, op_cache) 873 op_cache[op.name] = new_op 874 return new_op.outputs[tensor.value_index]
|
D | nn_ops.py | 357 new_op = _WithSpaceToBatch( 365 return new_op(input, None)
|
/external/v8/src/compiler/ |
D | node-properties.h | 108 static void ChangeOp(Node* node, const Operator* new_op);
|
D | node-properties.cc | 235 void NodeProperties::ChangeOp(Node* node, const Operator* new_op) { in ChangeOp() argument 236 node->set_op(new_op); in ChangeOp()
|
D | raw-machine-assembler.cc | 321 const Operator* new_op = common()->ResizeMergeOrPhi(op, phi->InputCount()); in AppendPhiInput() local 323 NodeProperties::ChangeOp(phi, new_op); in AppendPhiInput()
|
D | js-create-lowering.cc | 340 const Operator* new_op = common()->Call(desc); in ReduceJSCreateArguments() local 344 NodeProperties::ChangeOp(node, new_op); in ReduceJSCreateArguments() 382 const Operator* new_op = common()->Call(desc); in ReduceJSCreateArguments() local 385 NodeProperties::ChangeOp(node, new_op); in ReduceJSCreateArguments() 421 const Operator* new_op = common()->Call(desc); in ReduceJSCreateArguments() local 424 NodeProperties::ChangeOp(node, new_op); in ReduceJSCreateArguments()
|
D | simplified-lowering.cc | 175 void ChangeToPureOp(Node* node, const Operator* new_op) { in ChangeToPureOp() argument 176 DCHECK(new_op->HasProperty(Operator::kPure)); in ChangeToPureOp() 183 node->TrimInputCount(new_op->ValueInputCount()); in ChangeToPureOp() 187 NodeProperties::ChangeOp(node, new_op); in ChangeToPureOp()
|