Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 110 for is16 (0.1 sec)

  1. src/net/ip.go

    		return IP(addr[:])
    	}
    	return nil
    }
    
    func parseIP(s string) ([16]byte, bool) {
    	ip, err := netip.ParseAddr(s)
    	if err != nil || ip.Zone() != "" {
    		return [16]byte{}, false
    	}
    	return ip.As16(), true
    }
    
    // ParseCIDR parses s as a CIDR notation IP address and prefix length,
    // like "192.0.2.0/24" or "2001:db8::/32", as defined in
    // RFC 4632 and RFC 4291.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat May 18 03:13:26 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/convert_type.cc

    #include "tensorflow/core/platform/errors.h"
    
    namespace tflite {
    
    using absl::StatusOr;
    
    namespace errors = tensorflow::errors;
    
    tflite::TensorType ConvertTypeToTensorType(mlir::Type type) {
      if (type.isF16()) {
        return tflite::TensorType_FLOAT16;
      } else if (type.isBF16()) {
        return tflite::TensorType_BFLOAT16;
      } else if (type.isF32()) {
        return tflite::TensorType_FLOAT32;
      } else if (type.isF64()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/utils/const_tensor_utils.cc

      switch (elem_type.getIntOrFloatBitWidth()) {
        case 16: {
          assert(bytes_len % 2 == 0);
          // Supports both BF16 and F16.
          assert(elem_type.isF16() || elem_type.isBF16());
          int elem_count = bytes_len / 2;
    
          if (elem_type.isF16()) {
            std::vector<Eigen::half> values;
            values.reserve(elem_count);
    
            const char* data = reinterpret_cast<const char*>(buffer.data());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/testerrors/ptr_test.go

    	},
    	{
    		// Storing a Go pointer into C memory using a slice
    		// copy should fail.
    		name: "barrierslice",
    		c: `#include <stdlib.h>
    		    struct s16 { char *a[10]; };
    		    struct s16 *f16() { return malloc(sizeof(struct s16)); }
    		    void f16b(struct s16 *p) {}`,
    		body:      `p := C.f16(); copy(p.a[:], []*C.char{new(C.char)}); C.f16b(p)`,
    		fail:      true,
    		expensive: true,
    	},
    	{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:49 UTC 2023
    - 21.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/common/uniform_quantized_types.h

    bool IsI32F32UniformQuantizedPerAxisType(Type type);
    
    // Determines whether the storage type of a quantized type is supported by
    // `tfl.quantize` or `tfl.dequantize` ops. ui8, i8 and i16 are supported.
    bool IsSupportedByTfliteQuantizeOrDequantizeOps(IntegerType storage_type);
    
    // Returns true if a type is quantized tensor type.
    bool IsQuantizedTensorType(Type type);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  6. src/encoding/gob/encoder_test.go

    		}
    	})
    
    	t.Run("int16", func(t *testing.T) {
    		var sink bytes.Buffer
    		enc := NewEncoder(&sink)
    		enc.Encode(s16)
    
    		dec := NewDecoder(&sink)
    		res := make([]int16, 9)
    		dec.Decode(&res)
    
    		if !reflect.DeepEqual(s16, res) {
    			t.Fatalf("EncodeIntSlice: expected %v, got %v", s16, res)
    		}
    	})
    
    	t.Run("int32", func(t *testing.T) {
    		var sink bytes.Buffer
    		enc := NewEncoder(&sink)
    		enc.Encode(s32)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 29.7K bytes
    - Viewed (0)
  7. pilot/pkg/util/network/ip_test.go

    		t.Fatalf("Test setup failure - unable to determine IP of localhost: %v", err)
    	}
    	var ret string
    	for _, ip := range ips {
    		// unwrap the IPv4-mapped IPv6 address
    		unwrapIP := ip.Unmap()
    		if unwrapIP.Is6() {
    			ret = fmt.Sprintf("[%s]", unwrapIP.String())
    		} else {
    			return unwrapIP.String()
    		}
    	}
    	return ret
    }
    
    func MockLookupIPAddr(_ context.Context, _ string) ([]netip.Addr, error) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Dec 08 16:24:15 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  8. src/runtime/debuglog_test.go

    		t.Fatalf("want %q, got %q", want, got)
    	}
    }
    
    func TestDebugLogTypes(t *testing.T) {
    	skipDebugLog(t)
    	runtime.ResetDebugLog()
    	var varString = strings.Repeat("a", 4)
    	runtime.Dlog().B(true).B(false).I(-42).I16(0x7fff).U64(^uint64(0)).Hex(0xfff).P(nil).S(varString).S("const string").End()
    	got := dlogCanonicalize(runtime.DumpDebugLog())
    	if want := "[] true false -42 32767 18446744073709551615 0xfff 0x0 aaaa const string\n"; got != want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 18 16:59:26 UTC 2022
    - 4.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize_weight.cc

          const ShapedType new_result_type =
              mlir::dyn_cast<ShapedType>(convert_op.getType());
    
          // Proceeds only if the converting is to float16.
          if (!new_result_type.getElementType().isF16()) continue;
    
          // Convert values.
          std::vector<Eigen::half> new_values;
          const DenseFPElementsAttr value_attr =
              mlir::cast<DenseFPElementsAttr>(op.getValue());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  10. src/net/net_fake.go

    			ip = IPv4(127, 0, 0, 1)
    		}
    		switch ffd.fd.family {
    		case syscall.AF_INET:
    			if ip4 := ip.To4(); ip4 != nil {
    				ip = ip4
    			}
    		case syscall.AF_INET6:
    			if ip16 := ip.To16(); ip16 != nil {
    				ip = ip16
    			}
    		}
    		if ip == nil {
    			return syscall.EINVAL
    		}
    
    		if port == 0 {
    			var prevPort int32
    			portWrapped := false
    			nextPort := func() (int, bool) {
    				for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 19:24:21 UTC 2024
    - 26.4K bytes
    - Viewed (0)
Back to top