Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for getInputElementType (0.23 sec)

  1. tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc

        Type result_elt_type = GetFixedElementType(tfr_type_attr, rewriter);
        if (!result_elt_type) {
          return cast_op.getArg();
        }
    
        Type original_input_type =
            mlir::cast<TypeAttr>(cast_op.getInputElementType()).getValue();
        if (result_elt_type != original_input_type) {
          UnrankedTensorType result_type = UnrankedTensorType::get(result_elt_type);
          return rewriter.create<TF::CastOp>(loc, result_type, cast_op.getArg());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

        return success();
      }
    };
    
    quant::QuantizedType getQuantizedElementType(CastOp cast_op) {
      if (!cast_op || !cast_op.getInputElementType()) {
        return {};
      }
      return cast_op.getInputElementType()
          .cast<TypeAttr>()
          .getValue()
          .dyn_cast<quant::QuantizedType>();
    }
    
    class RemoveRawDataOp : public OpRewritePattern<TFRQuantRawDataOp> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tfr/ir/tfr_ops.td

      let extraClassDeclaration = [{
        // Return element type of the input tensor type. Only available when the
        // input is a MLIR built-in tensor type.
        Attribute getInputElementType() {
          if (auto ty = getArg().getType().dyn_cast<TensorType>()) {
            return TypeAttr::get(ty.getElementType());
          }
          return {};
        }
      }];
    
      let hasCanonicalizer = 1;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 10:54:29 UTC 2024
    - 17.4K bytes
    - Viewed (0)
Back to top