Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for reduction_indices (0.2 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/reduce.h

              reduce_op.getLoc(), reduce_op->getResult(0).getType(), operand,
              reduction_indices,
              /*keep_dim=*/rewriter.getBoolAttr(false));
          auto tf_argreduce_op = rewriter.create<ArgReduce>(
              reduce_op.getLoc(), reduce_op->getResult(1).getType(), operand,
              reduction_indices);
    
          rewriter.replaceOp(reduce_op, {tf_reduce_op, tf_argreduce_op});
        } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/python/mlir_wrapper/ops.cc

               [](mlir::OpBuilder& opb, mlir::Location loc, mlir::Value input,
                  mlir::Value reduction_indices,
                  bool keep_dims = false) -> mlir::Operation* {
                 return opb
                     .create<mlir::TF::AnyOp>(loc, opb.getI1Type(), input,
                                              reduction_indices, keep_dims)
                     .getOperation();
               });
    
      // mlir::TF::ConstOp
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Mar 30 02:12:49 UTC 2022
    - 7.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_tensor_helper.cc

      if (!ranked_type) return UnrankedTensorType::get(builder->getI1Type());
    
      return RankedTensorType::get(ranked_type.getShape(), builder->getI1Type());
    }
    
    Type InferReductionOpType(Value input, Value reduction_indices,
                              BoolAttr keep_dims) {
      Type input_ty = input.getType();
      Type element_ty = getElementTypeOrSelf(input_ty);
    
      // Output type is unranked if input type is not ranked.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. tensorflow/c/experimental/ops/math_ops.h

               const char* raw_device_name = nullptr);
    
    // Computes the sum of elements across dimensions of a tensor.
    Status Sum(AbstractContext* ctx, AbstractTensorHandle* const input,
               AbstractTensorHandle* const reduction_indices,
               AbstractTensorHandle** output, bool keep_dims = false,
               const char* name = nullptr, const char* raw_device_name = nullptr);
    
    // Returns x - y element-wise.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 10 19:11:36 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_tensor_helper.h

    Type DeduceEqualCmpOpType(Builder *builder, Location loc, Value x, Value y,
                              BoolAttr incompatible_shape_error);
    
    Type InferReductionOpType(Value input, Value reduction_indices,
                              BoolAttr keep_dims);
    
    // Verifies that the given types are cast compatible. If not, emits appropriate
    // error for the given op. If mask_one_dim is set to true, then the types are
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top