Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 117 for asin (0.05 sec)

  1. tensorflow/cc/gradients/math_grad_test.cc

    }
    
    TEST_F(CWiseUnaryGradTest, Asin) {
      auto x_fn = [this](const int i) { return RV({0, 0.25, -0.25, -0.5, 0.5}); };
      TestCWiseGrad<float, float>(ASIN, x_fn);
    }
    
    TEST_F(CWiseUnaryGradTest, Asin_Complex) {
      auto x_fn = [this](const int i) {
        return CRV({{0.5, 0}, {0, 0.5}, {0.25, -0.75}, {0.5, 0.25}});
      };
      // TODO(kbsriram)
      // Enable test when the asin kernel supports complex numbers
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 36K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/region-control-flow-to-functional.mlir

      %0 = "tf.IfRegion"(%arg0) ({
        // Outer Then
        %cond = "tf.LogicalNot"(%arg0) : (tensor<i1>) -> tensor<i1>
        %asin = "tf.Asin"(%arg1) : (tensor<*xf32>) -> tensor<*xf32>
    
        // nested IfRegion
        %1 = "tf.IfRegion"(%cond) ({
            %2 = "tf.Abs"(%asin) : (tensor<*xf32>) -> tensor<*xf32>
            "tf.Yield"(%2) : (tensor<*xf32>) -> ()
          }, {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 02 11:15:34 UTC 2024
    - 44.3K bytes
    - Viewed (0)
  3. src/math/all_test.go

    }
    
    func TestAsin(t *testing.T) {
    	for i := 0; i < len(vf); i++ {
    		a := vf[i] / 10
    		if f := Asin(a); !veryclose(asin[i], f) {
    			t.Errorf("Asin(%g) = %g, want %g", a, f, asin[i])
    		}
    	}
    	for i := 0; i < len(vfasinSC); i++ {
    		if f := Asin(vfasinSC[i]); !alike(asinSC[i], f) {
    			t.Errorf("Asin(%g) = %g, want %g", vfasinSC[i], f, asinSC[i])
    		}
    	}
    }
    
    func TestAsinh(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jul 07 17:39:26 UTC 2023
    - 86.8K bytes
    - Viewed (0)
  4. tensorflow/cc/gradients/math_grad.cc

                     std::vector<Output>* grad_outputs) {
      // y = asinh(x)
      // dy/dx = 1 / cosh(y)
      auto dydx = Reciprocal(scope, Cosh(scope, op.output(0)));
      // grad(x) = grad(y) * conj(dy/dx)
      grad_outputs->push_back(
          Mul(scope, grad_inputs[0], ConjugateHelper(scope, dydx)));
      return scope.status();
    }
    REGISTER_GRADIENT_OP("Asinh", AsinhGrad);
    
    Status AcoshGrad(const Scope& scope, const Operation& op,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 50.7K bytes
    - Viewed (0)
  5. src/math/asinh.go

    //
    //	Asinh(±0) = ±0
    //	Asinh(±Inf) = ±Inf
    //	Asinh(NaN) = NaN
    func Asinh(x float64) float64 {
    	if haveArchAsinh {
    		return archAsinh(x)
    	}
    	return asinh(x)
    }
    
    func asinh(x float64) float64 {
    	const (
    		Ln2      = 6.93147180559945286227e-01 // 0x3FE62E42FEFA39EF
    		NearZero = 1.0 / (1 << 28)            // 2**-28
    		Large    = 1 << 28                    // 2**28
    	)
    	// special cases
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 13 20:02:49 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  6. src/runtime/asan/asan.go

    // https://github.com/llvm/llvm-project/blob/main/compiler-rt/lib/asan/asan_init_version.h
    // This structure describes an instrumented global variable.
    //
    // TODO: If a later version of the ASan library changes __asan_global or __asan_global_source_location
    // structure, we need to make the same changes.
    struct _asan_global {
    	uintptr_t beg;
    	uintptr_t size;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 00:22:11 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/tests/lower_tf.mlir

    func.func @_UnaryOpsComposition(%arg0: tensor<4xf32>) -> tensor<4xf32> {
    
      // CHECK: %[[RESULT0:.*]] = "tf.Asin"(%[[ARG0]])
      // CHECK: %[[RESULT1:.*]] = "tf.Abs"(%[[RESULT0]])
      // CHECK: %[[RESULT2:.*]] = "tf.Log"(%[[RESULT1]])
      // CHECK: return %[[RESULT2]]
    
      %0 = "tf._UnaryOpsComposition"(%arg0) {op_names = ["Asin", "Abs", "Log"]} : (tensor<4xf32>) -> tensor<4xf32>
      func.return %0 : tensor<4xf32>
    }
    
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 05 18:35:42 UTC 2024
    - 92K bytes
    - Viewed (0)
  8. src/internal/asan/asan.go

    // Copyright 2024 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build asan
    
    package asan
    
    import (
    	"unsafe"
    )
    
    const Enabled = true
    
    //go:linkname Read runtime.asanread
    func Read(addr unsafe.Pointer, len uintptr)
    
    //go:linkname Write runtime.asanwrite
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 16:19:26 UTC 2024
    - 399 bytes
    - Viewed (0)
  9. src/runtime/asan.go

    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build asan
    
    package runtime
    
    import (
    	"unsafe"
    )
    
    // Public address sanitizer API.
    func ASanRead(addr unsafe.Pointer, len int) {
    	sp := getcallersp()
    	pc := getcallerpc()
    	doasanread(addr, uintptr(len), sp, pc)
    }
    
    func ASanWrite(addr unsafe.Pointer, len int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 20:39:58 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/mark_for_compilation_pass.cc

          new absl::flat_hash_map<string, std::vector<string>>{
              // Unary
              {"PW",
               {"ComplexAbs", "Angle", "Conj", "Abs", "Acos", "Acosh", "Asin",
                "Atan", "Atanh", "Ceil", "Cos", "Cosh", "Sin", "Exp", "Expm1",
                "Floor", "IsFinite", "IsInf", "IsNan", "Inv", "Reciprocal", "Log",
                "Log1p", "Invert", "LogicalNot", "Ndtri", "Neg", "Rint", "Round",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
Back to top