- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for log1p (0.04 sec)
-
src/math/all_test.go
a := vf[i] / 100 if f := Log1p(a); !veryclose(log1p[i], f) { t.Errorf("Log1p(%g) = %g, want %g", a, f, log1p[i]) } } a := 9.0 if f := Log1p(a); f != Ln10 { t.Errorf("Log1p(%g) = %g, want %g", a, f, Ln10) } for i := 0; i < len(vflogSC); i++ { if f := Log1p(vflog1pSC[i]); !alike(log1pSC[i], f) { t.Errorf("Log1p(%g) = %g, want %g", vflog1pSC[i], f, log1pSC[i]) } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jul 07 17:39:26 UTC 2023 - 86.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc
} // To improve accuracy on platforms with less-precise log implementations, // compute log(lanczos_gamma_plus_one_half) at compile time and use log1p on // the device. // log(t) = log(kLanczosGamma + 0.5 + z) // = log(kLanczosGamma + 0.5) + log1p(z / (kLanczosGamma + 0.5)) Value t = rewriter.create<AddV2Op>(loc, lanczos_gamma_plus_one_half, z); Value z_div_lanczos_gamma_plus_one_half =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 74.9K bytes - Viewed (0) -
tensorflow/cc/gradients/math_grad.cc
// y = log1p(x) // dy/dx = 1 / (1 + x) auto one = Cast(scope, Const(scope, 1.0), op.input(0).type()); auto dydx = Reciprocal(scope, Add(scope, one, op.input(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("Log1p", Log1pGrad);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 25 18:20:20 UTC 2023 - 50.7K bytes - Viewed (0) -
tensorflow/compiler/jit/mark_for_compilation_pass.cc
"Atan", "Atanh", "Ceil", "Cos", "Cosh", "Sin", "Exp", "Expm1", "Floor", "IsFinite", "IsInf", "IsNan", "Inv", "Reciprocal", "Log", "Log1p", "Invert", "LogicalNot", "Ndtri", "Neg", "Rint", "Round", "Rsqrt", "Sigmoid", "Sign", "Sinh", "Softplus", "Softsign", "Sqrt", "Square", "Tan", "Tanh", "Real", "Imag", "Erf", "Erfc", "Erfinv",
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Feb 21 12:19:41 UTC 2024 - 85.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/lower_tf.mlir
// CHECK: %[[IS_ZERO:.*]] = "tf.Equal"(%[[X]], %[[ZERO]]) <{incompatible_shape_error = true}> : (tensor<*xf32>, tensor<f32>) -> tensor<*xi1> // CHECK: %[[LOG:.*]] = "tf.Log1p"(%[[Y]]) : (tensor<*xf32>) -> tensor<*xf32> // CHECK: %[[MUL:.*]] = "tf.Mul"(%[[X]], %[[LOG]]) : (tensor<*xf32>, tensor<*xf32>) -> tensor<*xf32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jan 05 18:35:42 UTC 2024 - 92K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/rewrite.go
return int64(ntz64(^x)) } // logX returns logarithm of n base 2. // n must be a positive power of 2 (isPowerOfTwoX returns true). func log8(n int8) int64 { return int64(bits.Len8(uint8(n))) - 1 } func log16(n int16) int64 { return int64(bits.Len16(uint16(n))) - 1 } func log32(n int32) int64 { return int64(bits.Len32(uint32(n))) - 1 } func log64(n int64) int64 { return int64(bits.Len64(uint64(n))) - 1 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 19:02:52 UTC 2024 - 64.2K bytes - Viewed (0)