Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for InferReductionOpType (0.21 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_tensor_helper.h

    // incompatible shapes. Otherwise, returns a tensor type with unknown rank.
    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
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  2. 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);
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  3. 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)
  4. 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)
Back to top