Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 62 for is16 (0.04 sec)

  1. src/net/netip/netip_test.go

    	}
    	for _, tt := range tests {
    		got4 := tt.ip.Is4()
    		if got4 != tt.is4 {
    			t.Errorf("Is4(%q) = %v; want %v", tt.ip, got4, tt.is4)
    		}
    
    		got6 := tt.ip.Is6()
    		if got6 != tt.is6 {
    			t.Errorf("Is6(%q) = %v; want %v", tt.ip, got6, tt.is6)
    		}
    	}
    }
    
    func TestIs4In6(t *testing.T) {
    	tests := []struct {
    		ip        Addr
    		want      bool
    		wantUnmap Addr
    	}{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 54.3K bytes
    - Viewed (0)
  2. cni/pkg/ipset/ipset.go

    	// We have already Unmap'd, so we can do a simple IsV6 y/n check now
    	if ipToInsert.Is6() {
    		return m.Deps.addIP(m.V6Name, ipToInsert, ipProto, comment, replace)
    	}
    	return m.Deps.addIP(m.V4Name, ipToInsert, ipProto, comment, replace)
    }
    
    func (m *IPSet) DeleteIP(ip netip.Addr, ipProto uint8) error {
    	ipToDel := ip.Unmap()
    
    	// We have already Unmap'd, so we can do a simple IsV6 y/n check now
    	if ipToDel.Is6() {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 22:24:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. src/net/netip/netip.go

    type addrDetail struct {
    	IsV6   bool   // IPv4 is false, IPv6 is true.
    	ZoneV6 string // != "" only if IsV6 is true.
    }
    
    // z0, z4, and z6noz are sentinel Addr.z values.
    // See the Addr type's field docs.
    var (
    	z0    unique.Handle[addrDetail]
    	z4    = unique.Make(addrDetail{})
    	z6noz = unique.Make(addrDetail{IsV6: true})
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 17:10:01 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/prepare-quantize-post-training-16bits.mlir

      func.return %2 : tensor<1x1xf32>
    
    // CHECK: %[[q1:.*]] = "tfl.quantize"(%arg0) <{qtype = tensor<1x1x!quant.uniform<i16:f32, {{.*}}>>}> {volatile} : (tensor<1x1xf32>) -> tensor<1x1x!quant.uniform<i16:f32, {{.*}}>>
    // CHECK-NEXT: %[[dq1:.*]] = "tfl.dequantize"(%[[q1]]) : (tensor<1x1x!quant.uniform<i16:f32, {{.*}}>>) -> tensor<1x1xf32>
    // CHECK-NEXT: %[[sm:.*]] = "tfl.softmax"(%[[dq1]]) <{{{.*}}}> : (tensor<1x1xf32>) -> tensor<1x1xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  5. src/net/addrselect.go

    	scopeGlobal         scope = 0xe
    )
    
    func classifyScope(ip netip.Addr) scope {
    	if ip.IsLoopback() || ip.IsLinkLocalUnicast() {
    		return scopeLinkLocal
    	}
    	ipv6 := ip.Is6() && !ip.Is4In6()
    	ipv6AsBytes := ip.As16()
    	if ipv6 && ip.IsMulticast() {
    		return scope(ipv6AsBytes[1] & 0xf)
    	}
    	// Site-local addresses are defined in RFC 3513 section 2.5.6
    	// (and deprecated in RFC 3879).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 09 00:24:06 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  6. tools/istio-iptables/pkg/config/config_test.go

    		},
    	}
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			LocalIPAddrs = tt.lipas
    			_, isV6, err := getLocalIP(tt.isDS)
    			if err != nil {
    				t.Errorf("getLocalIP err: %s", err)
    			}
    			if isV6 != tt.expected {
    				t.Errorf("unexpected EnableIPv6 result, expected: %t got: %t", tt.expected, isV6)
    			}
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 22:24:38 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/while_loop_outline.cc

    bool IsCompatibleTypeWithTFLCastOp(Type type) {
      auto elemType = getElementTypeOrSelf(type);
      // F16, F32, F64, BF16 types are allowed.
      if (elemType.isBF16() || elemType.isF16() || elemType.isF32() ||
          elemType.isF64())
        return true;
    
      // I1, I4, I8, I16, I32, I64 types are allowed.
      if (elemType.isInteger(1) || elemType.isInteger(4) || elemType.isInteger(8) ||
          elemType.isInteger(16) || elemType.isInteger(32) ||
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/lstm.mlir

    tensor<640x!quant.uniform<i32:f32, 1.601389680352559E-4>>, %arg15: tensor<2048x!quant.uniform<i16:f32, 4.3700000969693065E-4>>, %arg16: tensor<2048x!quant.uniform<i16:f32, 1.1000000085914508E-4>>, %arg17: tensor<2048x!quant.uniform<i16:f32, 1.6799999866634607E-4>>, %arg18: tensor<2048x!quant.uniform<i16:f32, 1.55999994603917E-4>>, %arg19: tensor<1x640x!quant.uniform<i8:f32, 0.09671100229024887:10>>, %arg20: tensor<1x2048x!quant.uniform<i16:f32, 4.8799999058246613E-4>>) -> tensor<1x640x!quant.uniform<i8:f32, 0.09671100229024887:10>>...
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/prepare-quantize-post-training.mlir

    // CHECK-SAME: input_to_cell_intermediate = tensor<!quant.uniform<i16<-32767:32767>:f32, 1.2207403790398877E-4>>
    // CHECK-SAME: input_to_forget_intermediate = tensor<!quant.uniform<i16<-32767:32767>:f32, 4.8829615161595508E-4>>
    // CHECK-SAME: input_to_input_intermediate = tensor<!quant.uniform<i16<-32767:32767>:f32, 9.7659230323191015E-4>>
    // CHECK-SAME: input_to_output_intermediate = tensor<!quant.uniform<i16<-32767:32767>:f32, 3.0518509475997192E-5>>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 52.6K bytes
    - Viewed (0)
  10. pkg/util/net/ip.go

    		return false
    	}
    	return ipa.IsValid()
    }
    
    // IsIPv6Address returns if ip is IPv6.
    func IsIPv6Address(ip string) bool {
    	ipa, err := netip.ParseAddr(ip)
    	if err != nil {
    		return false
    	}
    	return ipa.Is6()
    }
    
    // IsIPv4Address returns if ip is IPv4.
    func IsIPv4Address(ip string) bool {
    	ipa, err := netip.ParseAddr(ip)
    	if err != nil {
    		return false
    	}
    	return ipa.Is4()
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 01 14:41:40 UTC 2024
    - 2.4K bytes
    - Viewed (0)
Back to top