Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for reduction_indices (0.41 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

    LogicalResult rewriteNonMatchInitValue(mhlo::ReduceOp reduce_op, Value input,
                                           TF::ConstOp reduction_indices,
                                           ConversionPatternRewriter& rewriter) {
      Value reduce_result = rewriter.create<TfReduceOp>(
          reduce_op.getLoc(), reduce_op.getType(0), input, reduction_indices,
          /*keep_dim=*/rewriter.getBoolAttr(false));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

    void MaxOp::build(OpBuilder& builder, OperationState& result, Value input,
                      Value reduction_indices, BoolAttr keep_dims) {
      Type out_ty = InferReductionOpType(input, reduction_indices, keep_dims);
      build(builder, result, out_ty, input, reduction_indices, keep_dims);
    }
    
    //===----------------------------------------------------------------------===//
    // MaximumOp
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

    void SumOp::build(OpBuilder &builder, OperationState &result, Value input,
                      Value reduction_indices, BoolAttr keep_dims) {
      Type out_ty = InferReductionOpType(input, reduction_indices, keep_dims);
      build(builder, result, out_ty, input, reduction_indices, keep_dims);
    }
    
    // TODO: Templatize this fold for all reduction ops.
    OpFoldResult SumOp::fold(FoldAdaptor) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tfr/python/tfr_gen.py

    # TODO(b/203493652): implement the "rename_to" for the customization in
    # tensorflow/core/api_def/base_api/*
    # {op_name: {API's attribute name: OpDef's attribute name}}
    _ATTRIBUTE_RENAMES = {
        'Mean': {'axis': 'reduction_indices'},
        'Split': {'axis': 'split_dim'},
        'SplitV': {'axis': 'split_dim'},
    }
    
    
    def _get_type_from_proto(arg_def=None, attr_def=None):
      if not arg_def:
        if attr_def.type == 'bool':
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 55.8K bytes
    - Viewed (0)
  5. RELEASE.md

    `axis` * `tf.count_nonzero`: `reduction_indices` becomes `axis` *
    `tf.expand_dims`: `dim` becomes `axis` * `tf.reduce_all`: `reduction_indices`
    becomes `axis` * `tf.reduce_any`: `reduction_indices` becomes `axis` *
    `tf.reduce_join`: `reduction_indices` becomes `axis` * `tf.reduce_logsumexp`:
    `reduction_indices` becomes `axis` * `tf.reduce_max`: `reduction_indices`
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 730.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

        Arg<TF_Int32Tensor, [{The dimensions to reduce over.  Dimensions are reduced in the
    order specified.  Omitting `reduction_indices` is equivalent to passing
    `[n-1, n-2, ..., 0]`.  Negative indices from `-n` to `-1` are supported.}]>:$reduction_indices,
    
        DefaultValuedOptionalAttr<BoolAttr, "false">:$keep_dims,
        DefaultValuedOptionalAttr<StrAttr, "\"\"">:$separator
      );
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

    `axis`. If `keep_dims` is true, the reduced dimensions are
    retained with length 1.
      }];
    
      let arguments = (ins
        TFL_BoolTensor:$input,
        TFL_I32Tensor:$reduction_indices,
    
        DefaultValuedOptionalAttr<BoolAttr, "false">:$keep_dims
      );
    
      let results = (outs
        TFL_BoolTensor:$output
      );
    
      let hasOptions = 1;
      let customOption = "ReducerOptions";
    }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
Back to top