Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 48 for u8 (0.19 sec)

  1. tensorflow/compiler/mlir/lite/tests/prepare-tf.mlir

    ^bb0(%arg0: tensor<1x2xf32>):
      %cst_0 = arith.constant dense<[1, 0]> : tensor<2xi32>
      %0 = "tfl.quantize"(%arg0){qtype = tensor<1x2x!quant.uniform<u8:f32, 1.0>>}: (tensor<1x2xf32>) -> (tensor<1x2x!quant.uniform<u8:f32, 1.0>>)
      %1 = "tfl.dequantize"(%0): (tensor<1x2x!quant.uniform<u8:f32, 1.0>>) -> (tensor<1x2xf32>)
      %2 = "tf.Transpose"(%1, %cst_0): (tensor<1x2xf32>, tensor<2xi32>) -> tensor<2x1xf32>
      func.return %2 : tensor<2x1xf32>
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 07:26:59 UTC 2024
    - 59.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/common/ir/UniformSupport.h

      virtual APInt quantizeFloatToInt(APFloat expressed_value) const {
        // This function is a performance critical code path in quantization
        // since it runs for each single float parameter value.
    
        // Specialize f32->u8/i8 case to optimize performance.
        if (&expressed_value.getSemantics() == &APFloat::IEEEsingle() &&
            storage_bit_width_ == 8 &&
            round_mode_ == llvm::APFloatBase::rmNearestTiesToAway) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  3. src/internal/types/testdata/fixedbugs/issue6977.go

    type U3 interface { M; m() }
    type U4 interface { M; M; M }
    type U5 interface { U1; U2; U3; U4 }
    
    type U6 interface { m(); m /* ERROR "duplicate method" */ () }
    type U7 interface { M32 /* ERROR "duplicate method" */ ; m() }
    type U8 interface { m(); M32 /* ERROR "duplicate method" */ }
    type U9 interface { M32; M64 /* ERROR "duplicate method" */ }
    
    // Verify that repeated embedding of the same interface(s)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:04:33 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. test/gcgort.go

    				a = str(i)
    				a = f(a.(string))
    				runtime.Gosched()
    			}
    		},
    	},
    	modifier{
    		name: "structT",
    		t: func() {
    			s := newStructT()
    			for i := 0; i < mods; i++ {
    				s.u8++
    				s.u16++
    				s.u32++
    				s.u64++
    				s.i8++
    				s.i16++
    				s.i32++
    				s.i64++
    				s.f32 *= 1.01
    				s.f64 *= 1.01
    				s.c64 = complex(real(s.c64)*1.01, imag(s.c64)*1.01)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 08 21:15:48 UTC 2018
    - 34.5K bytes
    - Viewed (0)
  5. src/internal/types/testdata/check/expr0.go

    	// uint
    	u0 = uint(1)
    	u1 uint = u0
    	u2 = +1
    	u3 = +u0
    	u4 uint = +1
    	u5 uint = +u4
    	u6 = -1
    	u7 = -u0
    	u8 uint = - /* ERROR "overflows" */ 1
    	u9 uint = -u4
    	u10 = !u0 /* ERROR "not defined" */
    	u11 = ^1
    	u12 = ^i0
    	u13 uint = ^ /* ERROR "overflows" */ 1
    	u14 uint = ^u4
    	u15 = *u0 /* ERROR "cannot indirect" */
    	u16 = &u0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 31 16:11:16 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  6. src/encoding/json/decode_test.go

    	M unmarshalerText
    }
    
    // u8marshal is an integer type that can marshal/unmarshal itself.
    type u8marshal uint8
    
    func (u8 u8marshal) MarshalText() ([]byte, error) {
    	return []byte(fmt.Sprintf("u%d", u8)), nil
    }
    
    var errMissingU8Prefix = errors.New("missing 'u' prefix")
    
    func (u8 *u8marshal) UnmarshalText(b []byte) error {
    	if !bytes.HasPrefix(b, []byte{'u'}) {
    		return errMissingU8Prefix
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 16:40:14 UTC 2024
    - 67.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/shape_inference.mlir

        %1:2 = "tfl.unpack"(%0) {axis = 0 : i32, num = 2 : i32} : (tensor<2x!quant.uniform<u8:f32, 0.007:128>>) -> (tensor<*x!quant.uniform<u8:f32, 0.007:128>>, tensor<*x!quant.uniform<u8:f32, 0.007:128>>)
        func.call @quant_fn(%1#0) : (tensor<*x!quant.uniform<u8:f32, 0.007:128>>) -> ()
    
        func.return %1#1 : tensor<*x!quant.uniform<u8:f32, 0.007:128>>
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 17:24:10 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/tests/legalize-tf.mlir

      // CHECK-LABEL: fakeQuantArgsTrue
      // CHECK: "tfl.quantize"(%arg0) <{qtype = tensor<8x8x8x8x!quant.uniform<u8<1:255>:f32, 0.001181102379804521:86>>}> : (tensor<8x8x8x8xf32>) -> tensor<8x8x8x8x!quant.uniform<u8<1:255>:f32, 0.001181102379804521:86>>
      // CHECK: %1 = "tfl.dequantize"(%0) : (tensor<8x8x8x8x!quant.uniform<u8<1:255>:f32, 0.001181102379804521:86>>) -> tensor<8x8x8x8xf32>
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 05 01:54:33 UTC 2024
    - 153.4K bytes
    - Viewed (0)
  9. test/ken/modconst.go

    		i8test(a, b, -101)
    	}
    }
    
    func u8rand() uint8 {
    	a := uint8(rand.Uint32())
    	a >>= uint(rand.Intn(8))
    	return a
    }
    
    func u8test(a, b, c uint8) {
    	d := a % c
    	if d != b {
    		println("u8", a, b, c, d)
    		panic("fail")
    	}
    }
    
    func u8run() {
    	var a, b uint8
    
    	for i := 0; i < Count; i++ {
    		a = u8rand()
    
    		b = a % 1
    		u8test(a, b, 1)
    		b = a % 2
    		u8test(a, b, 2)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Sep 08 17:28:20 UTC 2019
    - 9.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/optimize.mlir

      %shape = arith.constant dense<[40, 40]> : tensor<2xi32>
      %1 = "tfl.reshape"(%arg0, %shape) : (tensor<40x40x1x!quant.uniform<u8:f32, 0.024701418355107307:175>>, tensor<2xi32>) -> tensor<40x40x!quant.uniform<u8:f32, 0.024701418355107307:175>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 284.1K bytes
    - Viewed (0)
Back to top