Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 53 of 53 for m_Constant (0.09 sec)

  1. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc

      }
      return true;
    }
    
    bool QuantizationDriver::SetConstantResultParams(Operation* op) {
      DenseFPElementsAttr attr;
      const Value result = op->getResult(0);
      if (!matchPattern(result, m_Constant(&attr))) {
        return false;
      }
      // TODO: b/323478683 - Make storage_type_width and narrow_range configurable.
      Type final_type;
      const auto it = optimized_weights_.find(op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 38.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

     private:
      LogicalResult matchAndRewrite(quantfork::QuantizeCastOp q_op,
                                    PatternRewriter& rewriter) const override {
        DenseFPElementsAttr attr;
        if (!matchPattern(q_op.getArg(), m_Constant(&attr))) {
          return failure();
        }
    
        ShapedType tensor_qtype =
            mlir::cast<ShapedType>(q_op.getResult().getType());
        Attribute tensor_proto_attr = Quantize(attr, tensor_qtype);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/flatbuffer_import.cc

      }
      if (op_name == "tfl.reshape") {
        // Flattens reshape ops when more than one dimension shape operand is given.
        mlir::DenseIntElementsAttr shape_attr;
        if (matchPattern(op_state.operands[1], m_Constant(&shape_attr))) {
          auto shape_ty =
              op_state.operands[1].getType().dyn_cast<RankedTensorType>();
          if (shape_ty != nullptr && shape_ty.hasRank() && shape_ty.getRank() > 1) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 66.8K bytes
    - Viewed (0)
Back to top