Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testslice3 (0.56 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)
  3. 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)
Back to top