Home
last modified time | relevance | path

Searched refs:IsSwitch (Results 1 – 25 of 34) sorted by relevance

12

/external/tensorflow/tensorflow/python/kernel_tests/
Dcontrol_flow_util_test.py40 self.assertTrue(control_flow_util.IsSwitch(switch))
45 self.assertTrue(control_flow_util.IsSwitch(ref_switch))
47 self.assertFalse(control_flow_util.IsSwitch(test_ops.int_output().op))
112 if control_flow_util.IsSwitch(n):
117 self.assertTrue(control_flow_util.IsSwitch(n))
134 if control_flow_util.IsSwitch(n):
139 self.assertTrue(control_flow_util.IsSwitch(n))
/external/tensorflow/tensorflow/python/ops/
Dcontrol_flow_util.py79 def IsSwitch(op): function
101 if not IsSwitch(op):
139 if IsSwitch(op):
291 if IsSwitch(op):
Dgradients_util.py699 if (control_flow_util.IsSwitch(op) and
/external/tensorflow/tensorflow/core/common_runtime/
Dlower_while_op_test.cc80 ASSERT_FALSE(op->IsSwitch()); in TEST()
106 if (op->IsSwitch()) { in TEST()
181 ASSERT_FALSE(op->IsSwitch()); in TEST()
201 if (op->IsSwitch()) { in TEST()
Dlower_if_op_test.cc85 ASSERT_FALSE(op->IsSwitch()); in TEST()
101 if (op->IsSwitch()) { in TEST()
215 if (op->IsSwitch()) ++switch_count; in TEST()
Dlower_if_while_test.cc271 ASSERT_FALSE(op->IsSwitch()); in TEST()
/external/tensorflow/tensorflow/core/graph/
Dgraph.h147 bool IsSwitch() const { return class_ == NC_SWITCH; } in IsSwitch() function
166 (IsSwitch() || IsMerge() || IsEnter() || IsExit() || in IsControlFlow()
736 inline bool IsSwitch(const Node* node) { return node->IsSwitch(); } in IsSwitch() function
Dgraph_partition.cc346 if (IsSwitch(node)) { in OptimizeControlFlowColocation()
/external/libchrome/base/
Dcommand_line.cc58 bool IsSwitch(const CommandLine::StringType& string, in IsSwitch() function
89 if (parse_switches && IsSwitch(arg, &switch_string, &switch_value)) { in AppendSwitchesAndArguments()
468 if (parse_switches && IsSwitch(arg, &switch_string, &switch_value)) { in GetArgumentsStringInternal()
/external/tensorflow/tensorflow/compiler/tf2xla/
Dfunctionalize_cond.cc522 return IsSwitch(e->src()) ? BranchType(e->src_output()) in ExtractBodies()
541 if (IsSwitch(src)) { in ExtractBodies()
607 if (IsSwitch(src)) { in ExtractBodies()
709 if (!IsSwitch(in)) { in ExtractBodies()
1096 if (IsSwitch(src)) { in StateAlongEdge()
1281 if (IsSwitch(dst)) TF_RETURN_IF_ERROR(RemoveRedundantSwitch(dst)); in DetermineStates()
1302 } else if (IsSwitch(src)) { in DetermineAncestorState()
1431 if (IsSwitch(n)) { in FunctionalizeInternal()
Dfunctionalize_while.cc350 if (!edge->IsControlEdge() && IsSwitch(edge->dst()) && in FunctionalizeLoop()
418 if (edge->dst_input() == 0 && IsSwitch(edge->dst()) && in FunctionalizeLoop()
Dgraph_compiler.cc143 TF_RET_CHECK(!n->IsRecv() && !n->IsSend() && !n->IsSwitch()) in Compile()
/external/v8/src/interpreter/
Dbytecode-array-writer.cc87 DCHECK(Bytecodes::IsSwitch(node->bytecode())); in WriteSwitch()
427 DCHECK(Bytecodes::IsSwitch(node->bytecode())); in EmitSwitch()
Dbytecode-register-optimizer.h67 if (Bytecodes::IsJump(bytecode) || Bytecodes::IsSwitch(bytecode) || in NON_EXPORTED_BASE()
Dbytecodes.h637 static constexpr bool IsSwitch(Bytecode bytecode) { in IsSwitch() function
648 IsJumpWithoutEffects(bytecode) || IsSwitch(bytecode)); in IsWithoutExternalSideEffects()
/external/tensorflow/tensorflow/core/grappler/
Dmutable_graph_view.cc71 return IsSwitch(*input_node); in IsIdentityConsumingSwitch()
624 bool from_is_switch = IsSwitch(*from_node); in SwapNodeNames()
631 bool to_is_switch = IsSwitch(*to_node); in SwapNodeNames()
771 bool to_node_is_switch = IsSwitch(*to_node); in UpdateFanoutsInternal()
956 if (!IsSwitch(*fanin.node)) { in GetControllingFaninToAdd()
1256 if (to_fanin_is_control && IsSwitch(*to_fanin_node)) { in UpdateFanin()
Dop_types.h171 bool IsSwitch(const NodeDef& node);
Dop_types.cc504 bool IsSwitch(const NodeDef& node) { in IsSwitch() function
/external/tensorflow/tensorflow/core/grappler/optimizers/
Ddependency_optimizer.cc83 if (IsSwitch(*input)) { in SafeToRemoveIdentity()
99 if (IsMerge(node) || IsSwitch(node) || ModifiesFrameInfo(node) || in SafeToConvertToNoOp()
Dmodel_pruner.cc43 } else if (IsSwitch(*input.node)) { // Node is driven by switch. in IsTrivialIdentity()
Dloop_optimizer.cc748 if (!IsSwitch(node)) { in RemoveDeadBranches()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dscheduler.cc127 if (IsSwitch(n)) { in ComputeAlap()
/external/v8/src/compiler/
Dbytecode-analysis.cc222 } else if (Bytecodes::IsSwitch(bytecode)) { in UpdateOutLiveness()
/external/tensorflow/tensorflow/core/grappler/costs/
Dvirtual_scheduler.cc710 if (IsSwitch(*node) && node->attr().count(kOutputSlots) > 0 && in AddOutputNodesToReadyQueue()
/external/tensorflow/tensorflow/compiler/jit/
Ddeadness_analysis.cc1022 if (n->IsSwitch()) { in HandleNode()

12