Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 68 for Rsqrt (2.49 sec)

  1. src/image/draw/example_test.go

    	const width = 130
    	const height = 50
    
    	im := image.NewGray(image.Rectangle{Max: image.Point{X: width, Y: height}})
    	for x := 0; x < width; x++ {
    		for y := 0; y < height; y++ {
    			dist := math.Sqrt(math.Pow(float64(x-width/2), 2)/3+math.Pow(float64(y-height/2), 2)) / (height / 1.5) * 255
    			var gray uint8
    			if dist > 255 {
    				gray = 255
    			} else {
    				gray = uint8(dist)
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 18:07:05 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  2. samples/helloworld/src/app.py

    
    @app.route('/hello')
    def hello():
        version = os.environ.get('SERVICE_VERSION')
    
        # do some cpu intensive computation
        x = 0.0001
        for i in range(0, 1000000):
            x = x + math.sqrt(x)
    
        return 'Hello version: %s, instance: %s\n' % (version, os.environ.get('HOSTNAME'))
    
    
    @app.route('/health')
    def health():
        return 'Helloworld is healthy', 200
    
    
    if __name__ == "__main__":
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jun 20 13:44:21 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  3. src/math/hypot_amd64.s

    	MOVQ    $~(1<<63), AX
    	ANDQ    AX, BX // p = |p|
    	MOVQ    q+8(FP), CX
    	ANDQ    AX, CX // q = |q|
    	MOVQ    $PosInf, AX
    	CMPQ    AX, BX
    	JLE     isInfOrNaN
    	CMPQ    AX, CX
    	JLE     isInfOrNaN
    	// hypot = max * sqrt(1 + (min/max)**2)
    	MOVQ    BX, X0
    	MOVQ    CX, X1
    	ORQ     CX, BX
    	JEQ     isZero
    	MOVAPD  X0, X2
    	MAXSD   X1, X0
    	MINSD   X2, X1
    	DIVSD   X0, X1
    	MULSD   X1, X1
    	ADDSD   $1.0, X1
    	SQRTSD  X1, X1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 15 15:48:19 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/ops/update_cpp_ops.sh

      ZerosLike \
      Shape \
      ExpandDims \
      OnesLike
    
    ${generate} \
      --category=math \
      Mul \
      Conj \
      AddV2 \
      MatMul \
      Neg \
      Sum \
      Sub \
      Div \
      DivNoNan \
      Exp \
      Sqrt \
      SqrtGrad \
      Log1p
    
    ${generate} \
      --category=nn \
      SparseSoftmaxCrossEntropyWithLogits \
      ReluGrad \
      Relu \
      BiasAdd \
      BiasAddGrad
    
    ${generate} \
      --category=resource_variable \
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 17 17:54:34 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/stablehlo/tests/passes/unfuse_mhlo_batch_norm.mlir

      // CHECK-DAG: %[[EPS_BCAST:.+]] = mhlo.constant dense<1.001000e-05> : tensor<256xf32>
      // CHECK-DAG: %[[VARIANCE_EPS:.+]] = mhlo.add %[[VARIANCE]], %[[EPS_BCAST]] : tensor<256xf32>
      // CHECK-DAG: %[[STDDEV:.+]] = mhlo.sqrt %[[VARIANCE_EPS]] : tensor<256xf32>
      // CHECK-DAG: %[[STDDEV_BCAST:.+]] = "mhlo.broadcast_in_dim"(%[[STDDEV]]) <{broadcast_dimensions = dense<1> : tensor<1xi64>}> : (tensor<256xf32>) -> tensor<4x256xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  6. src/math/cmplx/log.go

    //   ******@****.***
    
    // Complex natural logarithm
    //
    // DESCRIPTION:
    //
    // Returns complex logarithm to the base e (2.718...) of
    // the complex argument z.
    //
    // If
    //       z = x + iy, r = sqrt( x**2 + y**2 ),
    // then
    //       w = log(r) + i arctan(y/x).
    //
    // The arctangent ranges from -PI to +PI.
    //
    // ACCURACY:
    //
    //                      Relative error:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/syntax/testdata/linalg.go

    // ComplexAbs is a helper type that defines an Abs method for
    // complex types.
    type ComplexAbs[T Complex] T
    
    func (a ComplexAbs[T]) Abs() ComplexAbs[T] {
    	r := float64(real(a))
    	i := float64(imag(a))
    	d := math.Sqrt(r * r + i * i)
    	return ComplexAbs[T](complex(d, 0))
    }
    
    func OrderedAbsDifference[T OrderedNumeric](a, b T) T {
    	return T(AbsDifference(OrderedAbs[T](a), OrderedAbs[T](b)))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 30 18:02:18 UTC 2022
    - 2.1K bytes
    - Viewed (0)
  8. test/typeparam/absdiffimp.dir/a.go

    // // complex types.
    // type complexAbs[T Complex] T
    //
    // func (a complexAbs[T]) Abs() complexAbs[T] {
    // 	r := float64(real(a))
    // 	i := float64(imag(a))
    // 	d := math.Sqrt(r*r + i*i)
    // 	return complexAbs[T](complex(d, 0))
    // }
    //
    // // OrderedAbsDifference returns the absolute value of the difference
    // // between a and b, where a and b are of an ordered type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 00:11:24 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  9. src/go/parser/testdata/linalg.go2

    // ComplexAbs is a helper type that defines an Abs method for
    // complex types.
    type ComplexAbs[T Complex] T
    
    func (a ComplexAbs[T]) Abs() ComplexAbs[T] {
    	r := float64(real(a))
    	i := float64(imag(a))
    	d := math.Sqrt(r * r + i * i)
    	return ComplexAbs[T](complex(d, 0))
    }
    
    func OrderedAbsDifference[T OrderedNumeric](a, b T) T {
    	return T(AbsDifference(OrderedAbs[T](a), OrderedAbs[T](b)))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 15:34:22 UTC 2021
    - 2K bytes
    - Viewed (0)
  10. src/internal/types/testdata/check/linalg.go

    // // complex types.
    // type ComplexAbs[T Complex] T
    // 
    // func (a ComplexAbs[T]) Abs() ComplexAbs[T] {
    // 	r := float64(real(a))
    // 	i := float64(imag(a))
    // 	d := math.Sqrt(r * r + i * i)
    // 	return ComplexAbs[T](complex(d, 0))
    // }
    // 
    // func OrderedAbsDifference[T OrderedNumeric](a, b T) T {
    // 	return T(AbsDifference(OrderedAbs[T](a), OrderedAbs[T](b)))
    // }
    // 
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 2.2K bytes
    - Viewed (0)
Back to top