Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for Cumprod (0.15 sec)

  1. tensorflow/cc/gradients/math_grad.cc

      //   [ 3.,  4.,  3.,  5.],
      //   [ 15.,  24.,  0.,  30.]
      // ]
      auto left = Cumprod(scope, reshaped, zero, Cumprod::Exclusive(true));
    
      // [
      //   [ 35.,  48.,  0.,  36.],
      //   [  7.,   8.,   5.,   6.],
      //   [  1.,   1.,   1.,   1.]
      // ]
      auto right =
          Cumprod(scope, reshaped, zero, Cumprod::Exclusive(true).Reverse(true));
    
      // left * right =
      // [
      //   [ 35.,  48.,  0.,  36.],
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 50.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf.mlir

      func.return %0 : tensor<?xf32>
    }
    
    //===----------------------------------------------------------------------===//
    // Cumprod op legalizations.
    //===----------------------------------------------------------------------===//
    
    // -----
    
    // CHECK-LABEL: func @cumprod
    func.func @cumprod(%arg0: tensor<4xf32>) -> tensor<4xf32> {
      // CHECK: [[INIT:%.*]] = mhlo.constant dense<1.000000e+00> : tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 06 18:46:23 UTC 2024
    - 335.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/mark_for_compilation_pass.cc

    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 21 12:19:41 UTC 2024
    - 85.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/tf-ops.mlir

      %0 = "tf.Cumprod"(%arg, %axis) : (tensor<8x16xf32>, tensor<2xi32>) -> tensor<8x16xf32>
      func.return %0 : tensor<8x16xf32>
    }
    
    // -----
    
    func.func @testCumprod(%arg: tensor<8x16xf32>) -> tensor<8x16xf32> {
      %axis = arith.constant dense<-3> : tensor<i32>
      // expected-error @+1 {{axis operand should be within range [-2, 2)}}
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 23 14:40:35 UTC 2023
    - 236.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

    By setting the `exclusive` kwarg to `True`, an exclusive cumprod is
    performed instead:
    
    ```python
    tf.cumprod([a, b, c], exclusive=True)  # => [1, a, a * b]
    ```
    
    By setting the `reverse` kwarg to `True`, the cumprod is performed in the
    opposite direction:
    
    ```python
    tf.cumprod([a, b, c], reverse=True)  # => [a * b * c, b * c, c]
    ```
    
    This is more efficient than using separate `tf.reverse` ops.
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

          result = rewriter.create<tensor::CastOp>(loc, op.getType(), result);
        rewriter.replaceOp(op, result);
        return success();
      }
    };
    
    // Converts the Cumsum or Cumprod TensorFlow op to the HLO ReduceWindow op by
    // setting appropriate window dimensions, with the given aggregation op as the
    // reduction function. The input tensor needs to have a static shape, and 'axis'
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  7. RELEASE.md

            Instead of converting probabilities to logits, we are using the cross
            entropy formula for probabilities.
        *   Added public APIs for `cumsum` and `cumprod` keras backend functions.
        *   Add support for temporal sample weight mode in subclassed models.
        *   Raise `ValueError` if an integer is passed to the training APIs.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 730.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/tests/legalize_hlo.mlir

    // CHECK-DAG:       %[[VAL_2:.*]] = "tf.Const"() <{value = dense<1> : tensor<i64>}> : () -> tensor<i64>
    // CHECK:           %[[VAL_3:.*]] = "tf.Cumprod"(%[[VAL_0]], %[[VAL_2]]) <{exclusive = false, reverse = false}> : (tensor<4x12xf32>, tensor<i64>) -> tensor<4x12xf32>
    // CHECK:           return %[[VAL_3]] : tensor<4x12xf32>
    // CHECK:         }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 07:26:59 UTC 2024
    - 340.2K bytes
    - Viewed (0)
Back to top