- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for getAxisStats (0.6 sec)
-
tensorflow/compiler/mlir/quantization/common/ir/QuantOps.cc
} // Verify axisStats (optional) attribute. if (getAxisStats()) { if (!getAxis()) return emitOpError("axis must be specified for axisStats"); auto shape = tensorArg.getShape(); auto argSliceSize = std::accumulate(std::next(shape.begin(), *getAxis()), shape.end(), 1, std::multiplies<int64_t>()); auto axisStatsType = getAxisStats()->getShapedType();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/ir/QuantOps.cc
} // Verify axisStats (optional) attribute. if (getAxisStats()) { if (!getAxis()) return emitOpError("axis must be specified for axisStats"); auto shape = tensorArg.getShape(); auto argSliceSize = std::accumulate(std::next(shape.begin(), *getAxis()), shape.end(), 1, std::multiplies<int64_t>()); auto axisStatsType = getAxisStats()->getShapedType();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h
quant::QuantizedType quant_type; SmallVector<double, 4> mins, maxs; if (op.getAxisStats().has_value()) { // Per axis quantization (or per channel quantization) int stats_num = op.getAxisStats()->getNumElements(); if (stats_num == 0 || stats_num % 2 != 0) return failure(); auto stats = op.getAxisStats()->dyn_cast<DenseFPElementsAttr>(); if (!stats) return failure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 41.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/flatbuffer_export.cc
mlir::quantfork::StatisticsOp stats_op) { auto layer_stats = mlir::cast<mlir::DenseFPElementsAttr>(stats_op.getLayerStats()); std::optional<mlir::ElementsAttr> axis_stats = stats_op.getAxisStats(); std::optional<uint64_t> axis = stats_op.getAxis(); std::vector<float> mins, maxs; mlir::DenseFPElementsAttr min_max_attr = axis_stats.has_value()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:41:49 UTC 2024 - 164.5K bytes - Viewed (0)