Home
last modified time | relevance | path

Searched refs:stats_op (Results 1 – 25 of 35) sorted by relevance

12

/external/tensorflow/tensorflow/compiler/mlir/lite/transforms/
Dprepare_quantize_helper.h194 for (auto& stats_op : stats_ops) { in processRestrictScale()
195 auto values = stats_op.layerStats() in processRestrictScale()
213 for (auto& stats_op : stats_ops) { in processRestrictScale()
214 rewriter.setInsertionPointAfter(stats_op); in processRestrictScale()
216 stats_op, stats_op.arg(), layer_stats, axis_stats, axis); in processRestrictScale()
256 if (auto stats_op = in processInputs() local
258 if (failed(replaceStatsOp(op, stats_op, index, tensor_property, in processInputs()
335 SourceOp op, quant::StatisticsOp stats_op, int input_index, in replaceStatsOp()
338 if (tensor_property.state_tensor && !stats_op.getResult().hasOneUse()) { in replaceStatsOp()
345 auto stats = stats_op.layerStats().dyn_cast<DenseFPElementsAttr>(); in replaceStatsOp()
[all …]
/external/tensorflow/tensorflow/compiler/mlir/lite/quantization/
Dquantization_utils.cc627 [&](quant::StatisticsOp stats_op) { all_stats_ops.push_back(stats_op); }); in RemoveRedundantStatsOps() argument
630 quant::StatisticsOp stats_op = all_stats_ops.back(); in RemoveRedundantStatsOps() local
633 if (auto def = stats_op.arg().getDefiningOp()) { in RemoveRedundantStatsOps()
635 redundant_stats_ops.insert(stats_op); in RemoveRedundantStatsOps()
639 for (auto user : stats_op.getResult().getUsers()) { in RemoveRedundantStatsOps()
663 func.walk([&](quant::StatisticsOp stats_op) { in RemoveRedundantStatsOps() argument
664 if (redundant_stats_ops.find(stats_op) == redundant_stats_ops.end()) { in RemoveRedundantStatsOps()
665 all_stats_ops.push_back(stats_op); in RemoveRedundantStatsOps()
670 quant::StatisticsOp stats_op = all_stats_ops.back(); in RemoveRedundantStatsOps() local
673 if (auto def = stats_op.arg().getDefiningOp()) { in RemoveRedundantStatsOps()
[all …]
Dimport_quant_stats_pass.cc129 auto stats_op = b.create<quant::StatisticsOp>(b.getUnknownLoc(), res, in InsertStatsOpAtResult() local
131 res.replaceAllUsesWith(stats_op); in InsertStatsOpAtResult()
132 stats_op.getOperation()->replaceUsesOfWith(stats_op, res); in InsertStatsOpAtResult()
/external/tensorflow/tensorflow/compiler/mlir/lite/
Dflatbuffer_export.cc564 GetQuantizationForQuantStatsOpOutput(mlir::quant::StatisticsOp stats_op);
1309 mlir::quant::StatisticsOp stats_op) { in GetQuantizationForQuantStatsOpOutput() argument
1310 auto layer_stats = stats_op.layerStats().cast<mlir::DenseFPElementsAttr>(); in GetQuantizationForQuantStatsOpOutput()
1311 Optional<mlir::ElementsAttr> axis_stats = stats_op.axisStats(); in GetQuantizationForQuantStatsOpOutput()
1312 Optional<uint64_t> axis = stats_op.axis(); in GetQuantizationForQuantStatsOpOutput()
1356 auto stats_op = in BuildSubGraph() local
1358 if (stats_op) { in BuildSubGraph()
1359 quant_parameters = GetQuantizationForQuantStatsOpOutput(stats_op); in BuildSubGraph()
1471 else if (auto stats_op = in BuildSubGraph() local
1474 operands.push_back(tensor_index_map.lookup(stats_op.arg())); in BuildSubGraph()
Dflatbuffer_import.cc513 if (auto stats_op = in BuildVariableOp() local
515 return stats_op; in BuildVariableOp()
1026 if (auto stats_op = in ConvertSubgraph() local
1028 vals_map[input_tensor] = stats_op->getResult(0); in ConvertSubgraph()
1124 if (auto stats_op = in ConvertSubgraph() local
1126 vals_map[output_tensor_index] = stats_op->getResult(0); in ConvertSubgraph()
/external/libpcap/
Dpcap-septel.c214 handle->stats_op = septel_stats; in septel_activate()
Dpcap-haiku.cpp157 handle->stats_op = pcap_stats_haiku; in pcap_activate_haiku()
Dpcap-bt-monitor-linux.c208 handle->stats_op = bt_monitor_stats; in bt_monitor_activate()
Dpcap-usb-linux.c726 handle->stats_op = usb_stats_linux_bin; in usb_activate()
754 handle->stats_op = usb_stats_linux_bin; in usb_activate()
823 handle->stats_op = usb_stats_linux; in usb_activate()
Dpcap-netmap.c274 p->stats_op = pcap_netmap_stats; in pcap_netmap_activate()
Dpcap-dbus.c235 handle->stats_op = dbus_stats; in dbus_activate()
Dpcap-int.h316 stats_op_t stats_op; member
Dpcap-nit.c360 p->stats_op = pcap_stats_nit; in pcap_activate_nit()
Dpcap-libdlpi.c247 p->stats_op = pcap_stats_dlpi; in pcap_activate_libdlpi()
Dpcap-snit.c449 p->stats_op = pcap_stats_snit; in pcap_activate_snit()
Dpcap-bt-linux.c225 handle->stats_op = bt_stats_linux; in bt_activate()
Dpcap-snoop.c411 p->stats_op = pcap_stats_snoop; in pcap_activate_snoop()
Dsavefile.c561 p->stats_op = sf_stats; in pcap_fopen_offline_with_tstamp_precision()
Dpcap-pf.c525 p->stats_op = pcap_stats_pf; in pcap_activate_pf()
Dpcap-snf.c315 p->stats_op = snf_pcap_stats; in snf_activate()
Dpcap-rdmasniff.c308 handle->stats_op = rdmasniff_stats; in rdmasniff_activate()
Dpcap-netfilter-linux.c593 handle->stats_op = netfilter_stats_linux; in netfilter_activate()
Dpcap-airpcap.c911 p->stats_op = airpcap_stats; in airpcap_activate()
Dpcap.c2402 p->stats_op = pcap_stats_not_initialized;
3738 return (p->stats_op(p, ps));
4381 p->stats_op = pcap_stats_dead;
Dpcap-dpdk.c941 p->stats_op = pcap_dpdk_stats; in pcap_dpdk_activate()

12