- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for FusedLoc (0.17 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/add_quantization_unit_loc.cc
// TF graph nodes are imported with one of following location patterns: // FusedLoc[NameLoc(op_type:), ..., NameLoc(node_name@func_name)] or // FusedLoc[NameLoc(op_type:), ..., CallSiteLoc(node_name@func_name)]. See // tensorflow/compiler/mlir/tensorflow/translate/import_model.cc for more // details. bool IsImportLocPattern(FusedLoc loc) { ArrayRef<Location> locations = mlir::cast<FusedLoc>(loc).getLocations();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/location_utils.cc
#include "mlir/Support/LLVM.h" // from @llvm-project namespace tensorflow { mlir::Location GetLocationWithoutOpType(mlir::Location loc) { if (auto fused_loc = mlir::dyn_cast<mlir::FusedLoc>(loc)) { auto locations = fused_loc.getLocations(); if (!locations.empty()) { // Skip locations for propagating op_type metadata. if (auto name_loc = mlir::dyn_cast<mlir::NameLoc>(locations[0])) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 1.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/metrics/types_util.cc
LocationExtractor(loc.getCallee()).Extract(error_data); LocationExtractor(loc.getCaller()).Extract(error_data); }) .Case<FusedLoc>([&](FusedLoc loc) { auto locations = loc.getLocations(); size_t num_locs = locations.size(); // Skip the first location if it stores information for propagating // op_type metadata.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/cc/quantization_unit_loc.cc
QuantizationUnitLoc::QuantizationUnit quant_unit; if (quant_unit.ParseFromString(serialized_proto)) { return quant_unit; } } else if (isa<FusedLoc>(loc)) { // If the op is rewritten, FusedLoc can be created. for (Location child_loc : mlir::cast<FusedLoc>(loc).getLocations()) { std::optional<QuantizationUnitLoc::QuantizationUnit> found_unit = FindQuantizationUnitFromLoc(child_loc);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/ir/ConvertConst.cc
// original const and the qbarrier that led to the quantization. auto fusedLoc = rewriter.getFusedLoc( {qbarrier.getArg().getDefiningOp()->getLoc(), qbarrier.getLoc()}); auto newConstOp = rewriter.create<arith::ConstantOp>( fusedLoc, newConstValueType, cast<TypedAttr>(newConstValue)); rewriter.replaceOpWithNewOp<StorageCastOp>(qbarrier, qbarrier.getType(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.4K bytes - Viewed (0)