Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for FindQuantizationUnitFromLoc (0.36 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/cc/quantization_unit_loc.cc

          std::optional<QuantizationUnitLoc::QuantizationUnit> found_unit =
              FindQuantizationUnitFromLoc(child_loc);
          if (found_unit.has_value()) return found_unit;
        }
      } else if (isa<CallSiteLoc>(loc)) {
        // If the graph is inlined, CallSiteLoc can be created.
        return FindQuantizationUnitFromLoc(
            mlir::cast<CallSiteLoc>(loc).getCallee());
      }
    
      return std::nullopt;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/cc/quantization_unit_loc.h

      static bool classof(Attribute attr);
    };
    
    // Finds the QuantizationUnit from location info.
    std::optional<QuantizationUnitLoc::QuantizationUnit>
    FindQuantizationUnitFromLoc(Location loc);
    
    }  // namespace quant
    }  // namespace mlir
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 03 02:39:10 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/passes/add_quantization_unit_loc.cc

     private:
      LogicalResult matchAndRewrite(Operation* op,
                                    PatternRewriter& rewriter) const override {
        if (!IsOpWithQuantizableTrait(op) ||
            FindQuantizationUnitFromLoc(op->getLoc()).has_value()) {
          return failure();
        }
    
        std::optional<QuantizationUnit> quantization_unit =
            FindQuantizationUnit(op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.4K bytes
    - Viewed (0)
Back to top