Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testslice (0.1 sec)

  1. tensorflow/compiler/mlir/lite/tests/ops.mlir

      func.return %0 : tensor<1x96x96x16x!quant.uniform<u8:f32, 0.00784:128>>
    }
    
    // -----
    
    func.func @testSlice(%arg0: tensor<2x3x5xf32>, %arg1: tensor<3xi32>, %arg2: tensor<3xi32>) -> tensor<?x3x5xf32> {
      %0 = "tfl.slice"(%arg0, %arg1, %arg2) : (tensor<2x3x5xf32>, tensor<3xi32>, tensor<3xi32>) -> tensor<?x3x5xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 189.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir

      %0 = "tf.Pack"(%arg0, %arg1) {axis = 3 : i64} : (tensor<4x8xf32>, tensor<4x8xf32>) -> tensor<*xf32>
      func.return %0 : tensor<*xf32>
    }
    
    // -----
    
    // Valid slice operation.
    func.func @testSlice(%arg0: tensor<3x4xi32>, %arg1: tensor<2xi64>) -> tensor<1x4xi32> {
      %sizes = "tf.Const"() {value = dense<[1, 4]> : tensor<2xi64>} : () -> (tensor<2xi64>)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 23 14:40:35 UTC 2023
    - 236.4K bytes
    - Viewed (0)
  3. src/reflect/all_test.go

    	}
    	s := "0123456789"
    	v = ValueOf(s).Index(3).Interface().(byte)
    	if v != s[3] {
    		t.Errorf("s.Index(3) = %v; expected %v", v, s[3])
    	}
    }
    
    func TestSlice(t *testing.T) {
    	xs := []int{1, 2, 3, 4, 5, 6, 7, 8}
    	v := ValueOf(xs).Slice(3, 5).Interface().([]int)
    	if len(v) != 2 {
    		t.Errorf("len(xs.Slice(3, 5)) = %d", len(v))
    	}
    	if cap(v) != 5 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  4. src/crypto/sha512/sha512_test.go

    				continue
    			}
    
    			if err := h2.(encoding.BinaryUnmarshaler).UnmarshalBinary(state); err == nil {
    				t.Errorf("i=%d, j=%d: got no error, expected one: %v", i, j, err)
    			}
    		}
    	}
    }
    
    func TestSize(t *testing.T) {
    	c := New()
    	if got := c.Size(); got != Size {
    		t.Errorf("Size = %d; want %d", got, Size)
    	}
    	c = New384()
    	if got := c.Size(); got != Size384 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 03 21:17:08 UTC 2023
    - 105.6K bytes
    - Viewed (0)
Back to top