Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for test_add (0.41 sec)

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

    // -----
    
    // CHECK-LABEL: testPad
    func.func @testPad(tensor<2x1x3xf32>, tensor<3x2xi32>) -> tensor<? x f32> {
    ^bb0(%arg0: tensor<2x1x3xf32>, %arg1: tensor<3x2xi32>):
      // CHECK: "tfl.pad"(%arg0, %arg1)
      %0 = "tfl.pad"(%arg0, %arg1) : (tensor<2x1x3xf32>, tensor<3x2xi32>) -> tensor<? x f32>
      func.return %0#0 : tensor<? x f32>
    }
    
    // -----
    
    // CHECK-LABEL: testPad5D
    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

    }
    
    // -----
    
    // TODO(hinsu): Move this to MLIR core once the test dialect have a custom type.
    
    // Check that broadcastable trait accepts TF specific element type
    // CHECK-LABEL: func @testAdd
    func.func @testAdd(%arg0: tensor<4x2x!tf_type.string>, %arg1: tensor<2x!tf_type.string>) -> tensor<4x2x!tf_type.string> {
      %0 = "tf.Add"(%arg0, %arg1) : (tensor<4x2x!tf_type.string>, tensor<2x!tf_type.string>) -> tensor<4x2x!tf_type.string>
    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. pkg/scheduler/internal/queue/scheduling_queue_test.go

    			}
    
    			for _, qPodInfo := range tt.qPodInfoInPodBackoffQ {
    				q.podBackoffQ.Add(qPodInfo)
    			}
    
    			// Activate specific pod according to the table
    			q.Activate(logger, map[string]*v1.Pod{"test_pod": tt.qPodInfoToActivate.PodInfo.Pod})
    
    			// Check the result after activation by the length of activeQ
    			if wantLen := len(tt.want); q.activeQ.Len() != wantLen {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 13:26:09 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  4. src/reflect/all_test.go

    	for i, xi := range x {
    		k := ValueOf(xi).Elem().Elem().Elem().Interface().(uintptr)
    		if k != uintptr(i) {
    			t.Errorf("lost x[%d] = %d, want %d", i, k, i)
    		}
    	}
    }
    
    func TestAddr(t *testing.T) {
    	var p struct {
    		X, Y int
    	}
    
    	v := ValueOf(&p)
    	v = v.Elem()
    	v = v.Addr()
    	v = v.Elem()
    	v = v.Field(0)
    	v.SetInt(2)
    	if p.X != 2 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
Back to top