Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testslice3 (0.14 sec)

  1. src/reflect/all_test.go

    	ptr2 := rv.UnsafePointer()
    	rv = rv.Slice(5, 5)
    	ptr3 := rv.UnsafePointer()
    	if ptr3 != ptr2 {
    		t.Errorf("xs.Slice(3,4).Slice3(5,5).UnsafePointer() = %p, want %p", ptr3, ptr2)
    	}
    }
    
    func TestSlice3(t *testing.T) {
    	xs := []int{1, 2, 3, 4, 5, 6, 7, 8}
    	v := ValueOf(xs).Slice3(3, 5, 7).Interface().([]int)
    	if len(v) != 2 {
    		t.Errorf("len(xs.Slice3(3, 5, 7)) = %d", len(v))
    	}
    	if cap(v) != 4 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  2. 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)
Back to top