- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 4,147 for IsSwitch (0.26 sec)
-
tensorflow/compiler/jit/shape_inference.cc
} while (node->IsIdentity()); const Node* switch_input; bool is_loop_invariant = node->IsSwitch() && node->input_node(0, &switch_input).ok() && switch_input == n; if (is_loop_invariant) { shape_inference::InferenceContext* context = shape_refiner->GetContext(n);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 31 00:41:19 UTC 2024 - 13K bytes - Viewed (0) -
tensorflow/compiler/jit/deadness_analysis.cc
} Status DeadnessAnalysisImpl::HandleNode(Node* n, std::vector<bool>* should_revisit, bool use_optimistic_mode) { if (n->IsSwitch()) { TF_RETURN_IF_ERROR(HandleSwitch(n, should_revisit)); } else if (n->IsMerge()) { TF_RETURN_IF_ERROR(HandleMerge(n, should_revisit, use_optimistic_mode)); } else if (n->IsControlTrigger()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 60.4K bytes - Viewed (0) -
tensorflow/compiler/jit/mark_for_compilation_pass.cc
} // Check if the Identity is driven by a Switch on its true path. auto it = absl::c_find_if(node->in_edges(), [](const Edge* e) { return e->src()->IsSwitch() && e->src_output() == 1; }); if (it == node->in_edges().end()) { return false; } const Node* switch_node = (*it)->src(); // Check if the Switch is driven by LoopCond. const Node* maybe_loop_cond;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 21 12:19:41 UTC 2024 - 85.3K bytes - Viewed (0) -
test/switch.go
// switch on nil-only comparison types switch f := func() {}; f { case nil: assert(false, "f should not be nil") default: } switch m := make(map[int]int); m { case nil: assert(false, "m should not be nil") default: } switch a := make([]int, 1); a { case nil: assert(false, "m should not be nil") default: } // switch on interface.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jul 19 23:30:49 UTC 2022 - 6.5K bytes - Viewed (0) -
src/cmd/go/internal/toolchain/switch.go
} } // NeedSwitch reports whether Switch would attempt to switch toolchains. func (s *Switcher) NeedSwitch() bool { return s.TooNew != nil && (HasAuto() || HasPath()) } // Switch decides whether to switch to a newer toolchain // to resolve any of the saved errors. // It switches if toolchain switches are permitted and there is at least one TooNewError. //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 18:15:22 UTC 2024 - 7K bytes - Viewed (0) -
src/cmd/compile/internal/walk/switch.go
// expression switch. func walkSwitchExpr(sw *ir.SwitchStmt) { lno := ir.SetPos(sw) cond := sw.Tag sw.Tag = nil // convert switch {...} to switch true {...} if cond == nil { cond = ir.NewBool(base.Pos, true) cond = typecheck.Expr(cond) cond = typecheck.DefaultLit(cond, nil) } // Given "switch string(byteslice)", // with all cases being side-effect free,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:01 UTC 2024 - 30.1K bytes - Viewed (0) -
test/codegen/switch.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // These tests check code generation of switch statements. package codegen // see issue 33934 func f(x string) int { // amd64:-`cmpstring` switch x { case "": return -1 case "1", "2", "3": return -2 default: return -3 } } // use jump tables for 8+ int cases
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 09 18:39:50 UTC 2023 - 3.6K bytes - Viewed (0) -
src/net/internal/socktest/switch.go
package socktest import ( "fmt" "sync" ) // A Switch represents a callpath point switch for socket system // calls. type Switch struct { once sync.Once fmu sync.RWMutex fltab map[FilterType]Filter smu sync.RWMutex sotab Sockets stats stats } func (sw *Switch) init() { sw.fltab = make(map[FilterType]Filter) sw.sotab = make(Sockets)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jan 10 03:29:50 UTC 2024 - 4.8K bytes - Viewed (0) -
src/internal/abi/switch.go
if !go122InterfaceSwitchCache { return false } // We need an atomic load instruction to make the cache multithreaded-safe. // (AtomicLoadPtr needs to be implemented in cmd/compile/internal/ssa/_gen/ARCH.rules.) switch goarch { case "amd64", "arm64", "loong64", "mips", "mipsle", "mips64", "mips64le", "ppc64", "ppc64le", "riscv64", "s390x": return true default: return false } } type TypeAssert struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 06 17:02:53 UTC 2023 - 1.6K bytes - Viewed (0) -
build/nsswitch.conf
Benjamin Elder <******@****.***> 1538172367 -0700
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Sep 29 00:04:48 UTC 2018 - 68 bytes - Viewed (0)