Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 115 for TestMul (0.17 sec)

  1. test/fixedbugs/issue66066.go

    	}
    
    }
    
    //go:noinline
    func mul3(a uint32) uint64 {
    	return uint64(a * 3)
    }
    
    func testMul() {
    	got := mul3(1<<32 - 1)
    	want := uint64((1<<32-1)*3 - 2<<32)
    	if got != want {
    		fmt.Printf("testMul: got %x want %x\n", got, want)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 677 bytes
    - Viewed (0)
  2. tensorflow/c/eager/gradient_checker_test.cc

      ASSERT_NO_FATAL_FAILURE(CompareNumericalAndManualGradients(
          MatMulModel, ctx_.get(), {A.get(), B.get()}, 0, expected_dA, 4,
          UseFunction()));
    }
    
    TEST_P(GradientCheckerTest, TestMul) {
      AbstractTensorHandlePtr x;
      {
        AbstractTensorHandle* x_raw = nullptr;
        Status s =
            TestScalarTensorHandle<float, TF_FLOAT>(ctx_.get(), 2.0f, &x_raw);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Apr 14 10:03:59 UTC 2023
    - 6.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/tests/get-arithmetic-count.mlir

      %0 = "tfl.sub"(%arg0, %arg1) {fused_activation_function = "NONE"} : (tensor<10x10x10xf32>, tensor<10xf32>) -> tensor<10x10x10xf32>
      func.return %0 : tensor<10x10x10xf32>
    }
    
    func.func @testMul(%arg0: tensor<10x10x10xf32>, %arg1: tensor<10x10x10xf32>) -> tensor<10x10x10xf32> {
      // CHECK: _arithmetic_count = 1000 : i64
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 14 04:58:17 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  4. src/crypto/aes/aes_test.go

    		}
    
    		// i *= x in GF(2) modulo the polynomial
    		i <<= 1
    		if i&0x100 != 0 {
    			i ^= poly
    		}
    	}
    	return s
    }
    
    // Test all mul inputs against bit-by-bit n² algorithm.
    func TestMul(t *testing.T) {
    	for i := uint32(0); i < 256; i++ {
    		for j := uint32(0); j < 256; j++ {
    			// Multiply i, j bit by bit.
    			s := uint8(0)
    			for k := uint(0); k < 8; k++ {
    				for l := uint(0); l < 8; l++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 14:58:19 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  5. src/math/big/int_test.go

    }
    
    func checkMul(a, b []byte) bool {
    	var x, y, z1 Int
    	x.SetBytes(a)
    	y.SetBytes(b)
    	z1.Mul(&x, &y)
    
    	var z2 Int
    	z2.SetBytes(mulBytes(a, b))
    
    	return z1.Cmp(&z2) == 0
    }
    
    func TestMul(t *testing.T) {
    	if err := quick.Check(checkMul, nil); err != nil {
    		t.Error(err)
    	}
    }
    
    var mulRangesZ = []struct {
    	a, b int64
    	prod string
    }{
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 58.5K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    	for i, test := range tests {
    		test.a.Add(test.b)
    		if test.a.Cmp(test.expected) != 0 {
    			t.Errorf("[%d] Expected %q, got %q", i, test.expected.String(), test.a.String())
    		}
    	}
    }
    
    func TestMul(t *testing.T) {
    	tests := []struct {
    		a        Quantity
    		b        int64
    		expected Quantity
    		ok       bool
    	}{
    		{decQuantity(10, 0, DecimalSI), 10, decQuantity(100, 0, DecimalSI), true},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/tests/ops.mlir

      %0 = tfl.sub %arg0, %arg1 {fused_activation_function = "RELU6"} : tensor<? x i64>
      func.return %0#0 : tensor<? x i64>
    }
    
    // CHECK-LABEL: testMul
    func.func @testMul(tensor<? x i32>, tensor<? x i32>) -> tensor<? x i32> {
    ^bb0(%arg0: tensor<? x i32>, %arg1: tensor<? x i32>):
      // CHECK: tfl.mul %arg0, %arg1 {fused_activation_function = "RELU6"}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 189.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir

      func.return %0 : tensor<4x1xcomplex<f32>>
    }
    
    // -----
    
    // CHECK-LABEL: func @testMul
    func.func @testMul(%arg0: tensor<2xui16>) -> (tensor<2xui16>) {
      %0 = "tf.Mul"(%arg0, %arg0) {T = "tfdtype$DT_UINT16", device = "/device:CPU:0", name = "Mul"} : (tensor<2xui16>, tensor<2xui16>) -> tensor<2xui16>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 23 14:40:35 UTC 2023
    - 236.4K bytes
    - Viewed (0)
  9. pkg/routes/openidmetadata.go

    func fromStandard(h http.HandlerFunc) restful.RouteFunction {
    	return func(req *restful.Request, resp *restful.Response) {
    		h(resp, req.Request)
    	}
    }
    
    func (s *OpenIDMetadataServer) serveConfiguration(w http.ResponseWriter, req *http.Request) {
    	w.Header().Set(restful.HEADER_ContentType, restful.MIME_JSON)
    	w.Header().Set(headerCacheControl, cacheControl)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 09 18:11:41 UTC 2022
    - 4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/server/routes/version.go

    	versionWS := new(restful.WebService)
    	versionWS.Path("/version")
    	versionWS.Doc("git code version from which this is built")
    	versionWS.Route(
    		versionWS.GET("/").To(v.handleVersion).
    			Doc("get the code version").
    			Operation("getCodeVersion").
    			Produces(restful.MIME_JSON).
    			Consumes(restful.MIME_JSON).
    			Writes(version.Info{}))
    
    	c.Add(versionWS)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 09 18:11:41 UTC 2022
    - 1.6K bytes
    - Viewed (0)
Back to top