Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for log1p (0.13 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/canonicalize.mlir

      // CHECK: %[[LOG1P:.*]] = "tf.Log1p"(%[[CONCAT]]) {device = "/job:localhost/replica:0/task:0/device:GPU:0"}
      // CHECK: return %[[LOG1P]]
      %0 = "tf.Log1p"(%arg0) : (tensor<?x1xf32>) -> tensor<?x1xf32>
      %1 = "tf.Log1p"(%arg1) : (tensor<?x1xf32>) -> tensor<?x1xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 132.1K bytes
    - Viewed (0)
  2. 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)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

    // Hoist coefficient-wise unary operation out of the Concat op:
    //
    //   %0 = "tf.Log1p"(%arg_0)
    //   %1 = "tf.Log1p"(%arg_1)
    //   ...
    //   %n = "tf.Log1p"(%arg_n)
    //   %m = "tf.ConcatV2"(%0, %1, ..., %n, %axis)
    //
    // Rewrite it to:
    //
    //   %0 = "tf.ConcatV2"(%arg_0, %arg_1, ..., %arg_n, %axis)
    //   %1 = "tf.Log1p"(%0)
    class HoistCwiseUnaryOutOfConcat : public OpRewritePattern<TF::ConcatV2Op> {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/tests/legalize_hlo.mlir

      func.return %0 : tensor<?xf32>
    }
    
    // CHECK-LABEL:   func @log1p(
    // CHECK-SAME:                %[[VAL_0:.*]]: tensor<2xf32>) -> tensor<2xf32> {
    // CHECK:           %[[VAL_1:.*]] = "tf.Log1p"(%[[VAL_0]]) : (tensor<2xf32>) -> tensor<2xf32>
    // CHECK:           return %[[VAL_1]] : tensor<2xf32>
    // CHECK:         }
    func.func @log1p(%arg0: tensor<2xf32>) -> tensor<2xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 07:26:59 UTC 2024
    - 340.2K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf.mlir

      %0 = "tf.Log"(%arg0) : (tensor<?xf32>) -> tensor<?xf32>
      func.return %0 : tensor<?xf32>
    }
    
    // -----
    
    // CHECK-LABEL: @log1p
    func.func @log1p(%arg0: tensor<2xf32>) -> tensor<2xf32> {
      // CHECK:  mhlo.log_plus_one %arg0 : tensor<2xf32>
      %0 = "tf.Log1p"(%arg0) : (tensor<2xf32>) -> tensor<2xf32>
      func.return %0 : tensor<2xf32>
    }
    
    // -----
    
    // CHECK-LABEL: func @log1p_dynamic
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 335.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/math/BigIntegerMathTest.java

      // Relies on the correctness of log10(BigInteger, {HALF_UP,HALF_DOWN}).
      @GwtIncompatible // TODO
      public void testLog10HalfEven() {
        for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) {
          int halfEven = BigIntegerMath.log10(x, HALF_EVEN);
          // Now figure out what rounding mode we should behave like (it depends if FLOOR was
          // odd/even).
          boolean floorWasEven = (BigIntegerMath.log10(x, FLOOR) & 1) == 0;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 17:58:33 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

        }
      }];
    }
    
    def TF_Log1pOp : TF_Op<"Log1p", [Pure, TF_CwiseUnary, TF_SameOperandsAndResultTypeResolveRef]> {
      let summary = "Computes natural logarithm of (1 + x) element-wise.";
    
      let description = [{
    I.e., \\(y = \log_e (1 + x)\\).
    
    Example:
    
    ```python
    x = tf.constant([0, 0.5, 1, 5])
    tf.math.log1p(x) ==> [0., 0.4054651, 0.6931472, 1.7917595]
    ```
      }];
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.td

          (TF_TensorScatterAddOp
           (TF_FillOp $shape, (TF_ConstOp (GetScalarOfType<0> $updates))),
           $indices, $updates)>;
    
    //===----------------------------------------------------------------------===//
    // Xdivy, Xlog1p and Xlogy op patterns.
    //===----------------------------------------------------------------------===//
    
    class BinaryXopyPat<dag From, dag To> : Pat<
      From,
      (TF_SelectV2Op
        (TF_EqualOp
          $x,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config.cc

            TypeID::get<TF::LeftShiftOp>(),
            TypeID::get<TF::LessOp>(),
            TypeID::get<TF::ListDiffOp>(),
            TypeID::get<TF::LogicalAndOp>(),
            TypeID::get<TF::LogicalNotOp>(),
            TypeID::get<TF::LogOp>(),
            TypeID::get<TF::LowerBoundOp>(),
            TypeID::get<TF::MakeUniqueOp>(),
            TypeID::get<TF::MatMulOp>(),
            TypeID::get<TF::MatrixDiagV3Op>(),
            TypeID::get<TF::MatrixInverseOp>(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 04:08:35 UTC 2024
    - 21.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/generic.rules

    (Div16 <t> n (Const16 [c])) && isPowerOfTwo16(c) =>
      (Rsh16x64
        (Add16 <t> n (Rsh16Ux64 <t> (Rsh16x64 <t> n (Const64 <typ.UInt64> [15])) (Const64 <typ.UInt64> [int64(16-log16(c))])))
        (Const64 <typ.UInt64> [int64(log16(c))]))
    (Div32 <t> n (Const32 [c])) && isPowerOfTwo32(c) =>
      (Rsh32x64
        (Add32 <t> n (Rsh32Ux64 <t> (Rsh32x64 <t> n (Const64 <typ.UInt64> [31])) (Const64 <typ.UInt64> [int64(32-log32(c))])))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
Back to top