Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 34 for tanh (0.06 sec)

  1. src/math/export_s390x_test.go

    var SinNoVec = sin
    var SinhNoVec = sinh
    var TanhNoVec = tanh
    var Log1pNovec = log1p
    var AtanhNovec = atanh
    var AcosNovec = acos
    var AcoshNovec = acosh
    var AsinNovec = asin
    var AsinhNovec = asinh
    var ErfNovec = erf
    var ErfcNovec = erfc
    var AtanNovec = atan
    var Atan2Novec = atan2
    var CbrtNovec = cbrt
    var LogNovec = log
    var TanNovec = tan
    var ExpNovec = exp
    var Expm1Novec = expm1
    var PowNovec = pow
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 08 19:52:30 UTC 2017
    - 732 bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfrt/tests/tf_to_corert/basic.mlir

      // CHECK-NEXT: [[r2:%.*]] = tfrt_fallback_async.executeop {{.*}} "tf.Tanh"([[r1]]) {T = f32}
      %4 = "tf.Tanh"(%3) {T = f32, _output_shapes = ["tfshape$dim { size: 3 } dim { size: 3 }"], device = "/device:CPU:0"} : (tensor<3x3xf32>) -> tensor<3x3xf32>
      // CHECK-NOT: tf.Identity
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 00:18:59 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/README.md

      res = tf.raw_ops.Add(x=res, y=bias)
      if act == 'RELU':
        return tf.raw_ops.Relu(features=res)
      elif act == 'RELU6':
        return tf.raw_ops.Relu6(features=res)
      elif act == 'TANH':
        return tf.raw_ops.Tanh(x=res)
      else:
        return res
    
    ```
    
    Besides defining new ops, composition can be specified for an existing op
    for portability. The following code defines the semantics of `AddNOp`:
    
    ```python
    @Composite('AddNOp')
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 29 18:32:13 UTC 2022
    - 6.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/composite_lowering_patterns.td

              (variadic $inputs),
              ConstantStrAttr<StrAttr, "aten.gelu.default">, $attrs, $_, $_),
            (TFL_GeluOp $inputs, ConstBoolAttrTrue),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/lstm.json

              "intermediates": [
                25, 26, 27, 28, 29
              ],
              "builtin_options_type": "UnidirectionalSequenceLSTMOptions",
              "builtin_options": {
                "fused_activation_function": "TANH",
                "cell_clip": 50.0
              },
              "mutating_variable_inputs": [
                false,
                false, false, false, false,
                false, false, false, false,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 06:25:50 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  6. src/math/example_test.go

    	// Output: 0.00, 1.00
    }
    
    func ExampleSinh() {
    	fmt.Printf("%.2f", math.Sinh(0))
    	// Output: 0.00
    }
    
    func ExampleTan() {
    	fmt.Printf("%.2f", math.Tan(0))
    	// Output: 0.00
    }
    
    func ExampleTanh() {
    	fmt.Printf("%.2f", math.Tanh(0))
    	// Output: 0.00
    }
    
    func ExampleSqrt() {
    	const (
    		a = 3
    		b = 4
    	)
    	c := math.Sqrt(a*a + b*b)
    	fmt.Printf("%.1f", c)
    	// Output: 5.0
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 07 18:09:53 UTC 2021
    - 3.7K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/ir/tfl_op_enums.td

    def TFL_AFEnum_Relu  : I32EnumAttrCase<"RELU", 1>;
    def TFL_AFEnum_Relu1 : I32EnumAttrCase<"RELU_N1_TO_1", 2>;
    def TFL_AFEnum_Relu6 : I32EnumAttrCase<"RELU6", 3>;
    def TFL_AFEnum_Tanh  : I32EnumAttrCase<"TANH", 4>;
    def TFL_AFEnum_Sign  : I32EnumAttrCase<"SIGN_BIT", 5>;
    
    def TFL_AFAttr : TFL_AnyStrAttrOf<[
          TFL_AFEnum_None.symbol,  TFL_AFEnum_Relu.symbol, TFL_AFEnum_Relu1.symbol,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Oct 20 00:05:24 UTC 2022
    - 6.4K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/gpu_hardware.cc

    // tfl.relu / tfl.relu6 / tfl.rsqrt / tfl.sin / tfl.slice / tfl.softmax /
    // tfl.space_to_depth / tfl.sqrt / tfl.square / tfl.squared_difference /
    // tfl.strided_slice / tfl.tanh / tfl.transpose / tfl.transpose_conv
    class GpuBasicSupportedOpNoCost : public TargetHardwareOperation {
      double GetOpCost(mlir::Operation* op) const override { return 0; }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/tests/get-arithmetic-count.mlir

      func.return %0 : tensor<10x10xf32>
    }
    
    func.func @testTanh(%arg0: tensor<10x10xf32>) -> tensor<10x10xf32> {
      // CHECK: _arithmetic_count = 6400 : i64
      %0 = "tfl.tanh"(%arg0) : (tensor<10x10xf32>) -> tensor<10x10xf32>
      func.return %0 : tensor<10x10xf32>
    }
    
    func.func @testAddN(%arg0: tensor<10x10xf32>, %arg1: tensor<10x10xf32>, %arg2: tensor<10x10xf32>) -> tensor<10x10xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 14 04:58:17 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  10. src/math/atanh.go

    //
    
    // Atanh returns the inverse hyperbolic tangent of x.
    //
    // Special cases are:
    //
    //	Atanh(1) = +Inf
    //	Atanh(±0) = ±0
    //	Atanh(-1) = -Inf
    //	Atanh(x) = NaN if x < -1 or x > 1
    //	Atanh(NaN) = NaN
    func Atanh(x float64) float64 {
    	if haveArchAtanh {
    		return archAtanh(x)
    	}
    	return atanh(x)
    }
    
    func atanh(x float64) float64 {
    	const NearZero = 1.0 / (1 << 28) // 2**-28
    	// special cases
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 2K bytes
    - Viewed (0)
Back to top