Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for TestConst (0.14 sec)

  1. src/cmd/cgo/internal/test/cgo_test.go

    func TestCallbackStack(t *testing.T)         { testCallbackStack(t) }
    func TestCflags(t *testing.T)                { testCflags(t) }
    func TestCheckConst(t *testing.T)            { testCheckConst(t) }
    func TestConst(t *testing.T)                 { testConst(t) }
    func TestCthread(t *testing.T)               { testCthread(t) }
    func TestEnum(t *testing.T)                  { testEnum(t) }
    func TestNamedEnum(t *testing.T)             { testNamedEnum(t) }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  2. src/cmd/cgo/internal/test/test.go

    	C.free(unsafe.Pointer(p))
    	return int(n), err
    }
    
    func Atol(s string) int {
    	p := C.CString(s)
    	n := C.atol(p)
    	C.free(unsafe.Pointer(p))
    	return int(n)
    }
    
    func testConst(t *testing.T) {
    	C.myConstFunc(nil, 0, nil)
    }
    
    func testEnum(t *testing.T) {
    	if C.Enum1 != 1 || C.Enum2 != 2 {
    		t.Error("bad enum", C.Enum1, C.Enum2)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 15:50:06 UTC 2024
    - 48.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir

      %0 = "tf.VariableShape"(%arg0)  : (tensor<1x2x!tf_type.resource<tensor<1x32x32x16xf32>>>) -> tensor<4xi32>
      func.return %0 : tensor<4xi32>
    }
    
    // -----
    
    // Test invalid tf.Const
    func.func @testConst() -> tensor<f32> {
      // expected-error @+1 {{attribute 'value' failed to satisfy constraint: constant vector/tensor}}
      %0 = "tf.Const"() {T = "tfdtype$DT_FLOAT", value = 1.0 : f32} : () -> tensor<f32>
    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