- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for replaceUsesOfWith (0.34 sec)
-
tensorflow/compiler/mlir/lite/utils/fake_quant_utils.h
auto dequantize = rewriter.create<TFL::DequantizeOp>( tf_op.getLoc(), res_type, quantize.getOutput()); value.replaceAllUsesWith(dequantize); quantize.getOperation()->replaceUsesOfWith(dequantize, value); return success(); } bool use_fake_quant_num_bits_; }; // Removes the wrapper of the tf.FakeQuant* ops and creates the tfl.quantize
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/tensorflow/tf_to_quant.cc
auto dequantize = rewriter.create<quantfork::DequantizeCastOp>( tf_op.getLoc(), res_type, quantize.getResult()); value.replaceAllUsesWith(dequantize); quantize.getOperation()->replaceUsesOfWith(dequantize, value); return success(); } }; using PreparePerTensorFakeQuant = InsertQuantOpsAfterTFFakeQuantOp<TF::FakeQuantWithMinMaxVarsOp, false>;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/default_quant_params.cc
value.replaceAllUsesWith(dequantize); // `quantize` is using `dequantize` now, so we should set its operand to // `value`. quantize.getOperation()->replaceUsesOfWith(dequantize, value); } quant::QuantParams DefaultQuantParamsPass::GetQuantParamsForBias( Operation *op, int bias, const std::vector<int> &non_biases, quant::AccumulatorScaleFunc func) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/import_quant_stats_pass.cc
auto stats_op = b.create<quantfork::StatisticsOp>( b.getUnknownLoc(), res, layer_stats, axis_stats, axis); res.replaceAllUsesWith(stats_op); stats_op.getOperation()->replaceUsesOfWith(stats_op, res); } void ImportQuantStatsPass::ImportAsStatsOps(OpBuilder b, Operation *op, int index,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 08 10:41:08 UTC 2024 - 9.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc
// `original_result` has a use to `quantize`, so this will replace that use // by the result of `dequantize`. Remember to reset that use afterwards value.replaceAllUsesWith(dequantize); quantize.getOperation()->replaceUsesOfWith(dequantize, value); } void QuantizationDriver::RequantizeOpResult(Operation* op, const int result_index,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 38.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h
q->setAttr(kVolatileOpAttrName, rewriter.getUnitAttr()); auto dq = rewriter.create<DequantizeOpT>(op.getLoc(), op.getType(), q); op.getResult().replaceAllUsesWith(dq); q.getOperation()->replaceUsesOfWith(dq, op.getArg()); op.erase(); return success(); } private: int num_bits; bool narrow_range; bool is_signed; bool legacy_float_scale;
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/transforms/optimize.cc
if (!mlir::isa<NoneType>(bias.getType())) { rewriter.setInsertionPoint(fc_op); auto new_bias = rewriter.create<TF::MulOp>(loc, bias, gamma); fc_op.getOperation()->replaceUsesOfWith(bias, new_bias); } // Remove the tailing mul op. mul_op.replaceAllUsesWith(fc_op.getResult()); return success(); } };
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 30 00:40:15 UTC 2024 - 102.3K bytes - Viewed (0)