- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 1,725 for switch3 (0.19 sec)
-
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) -
test/switch6.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 24 17:04:15 UTC 2022 - 1.1K bytes - Viewed (0) -
test/switch2.go
// Verify that erroneous switch statements are detected by the compiler. // Does not compile. package main func f() { switch { case 0; // ERROR "expecting := or = or : or comma|expected :" } switch { case 0; // ERROR "expecting := or = or : or comma|expected :" default: } switch { case 0: case 0: default: } switch { case 0: f(); case 0:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 01 22:37:04 UTC 2022 - 775 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) -
tensorflow/compiler/mlir/tensorflow/tests/mlir2graphdef/switchn.mlir
"tf_executor.yield"(%0) : (tensor<i32>) -> () }) : () -> (tensor<i32>, !tf_executor.control) %outputs_0:3, %control_1 = "tf_executor._SwitchN"(%outputs, %outputs) {T = i32, device = "", num_outs = 3 : i64} : (tensor<i32>, tensor<i32>) -> (tensor<*xi32>, tensor<*xi32>, tensor<*xi32>, !tf_executor.control) %outputs_2, %control_3 = "tf_executor.island"() ({
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 22 14:25:57 UTC 2022 - 4K 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) -
tensorflow/compiler/mlir/tensorflow/tests/graphdef2mlir/switch_n.pbtxt
# CHECK: tf_executor._SwitchN # CHECK-SAME: of 3 : tensor<*xi32> # CHECK-SAME: T = i32 # CHECK-SAME: loc(fused["_SwitchN:", "Case/branch_index/_3"]) # CHECK: tf_executor._SwitchN # CHECK-SAME: of 2 : tensor<*xf32> # CHECK-SAME: T = f32 # CHECK-SAME: loc(fused["_SwitchN:", "Case/Case/input_0/_7"]) node { name: "Case/branch_index" op: "Const" attr {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Nov 15 19:42:47 UTC 2021 - 3.7K bytes - Viewed (0) -
src/cmd/gofmt/testdata/typeswitch.input
type switch header or in the case. See also issue 4470. */ package p func f() { var x interface{} switch x.(type) { // should remain the same } switch (x.(type)) { // should become: switch x.(type) { } switch x.(type) { // should remain the same case int: } switch (x.(type)) { // should become: switch x.(type) { case int: } switch x.(type) { // should remain the same case []int:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 15 17:17:30 UTC 2022 - 1.4K bytes - Viewed (0)