- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 230 for GetOperation (0.37 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/test_post_calibration_component.cc
MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(TestPostCalibrationComponentPass) private: void runOnOperation() override; }; void TestPostCalibrationComponentPass::runOnOperation() { ModuleOp module_op = getOperation(); MLIRContext& ctx = getContext(); OpPassManager pm(ModuleOp::getOperationName()); QuantizationConfig config = QuantizationConfig::default_instance(); config.mutable_static_range_ptq_preset();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 12:53:33 UTC 2024 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/remove_vars_in_session_initializer.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc
} } // namespace struct LegalizeStablehloToVhloPass : public impl::LegalizeStablehloToVhloPassBase< LegalizeStablehloToVhloPass> { void runOnOperation() override { ModuleOp module = getOperation(); std::string target_version = tflite_supported_stablehlo_version; VhloToStablehloTypeConverter to_builtin_converter; // StableHLO --> VHLO (allow funcs)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 15 19:48:51 UTC 2024 - 12.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/ir/ConvertConst.cc
newConstOp); return success(); } void ConvertConstPass::runOnOperation() { RewritePatternSet patterns(&getContext()); auto func = getOperation(); auto *context = &getContext(); patterns.add<QuantizedConstRewrite>(context); (void)applyPatternsAndFoldGreedily(func, std::move(patterns)); } std::unique_ptr<OperationPass<func::FuncOp>>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tensor_device_copy_conversion.cc
}; // Folds tf.IdentityOp and tf.IdentityNOp if op device and the argument devices // from the defining ops match. void TensorDeviceCopyConversionPass::runOnOperation() { func::FuncOp func_op = getOperation(); auto should_fold_op_func = [&func_op](const Value &arg, const StringAttr &op_device) { // In TFRT TPU, tensor transfer is handled specifically by D2H and
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/testing/test_lift_quantizable_spots_as_functions_with_quantization_specs.cc
if (!quantization_specs.ok()) { signalPassFailure(); return; } pass_manager.addPass( CreateLiftQuantizableSpotsAsFunctionsPass(*quantization_specs)); if (failed(pass_manager.run(getOperation()))) { signalPassFailure(); } } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 28 23:21:42 UTC 2024 - 5.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/batchmatmul_to_einsum.cc
: public impl::BatchMatMulToEinsumPassBase<BatchMatMulToEinsumPass> { void runOnOperation() override; }; void BatchMatMulToEinsumPass::runOnOperation() { RewritePatternSet patterns(&getContext()); auto func = getOperation(); patterns.add<ConvertTFBatchMatMulToEinsumOp<TF::BatchMatMulOp>, ConvertTFBatchMatMulToEinsumOp<TF::BatchMatMulV2Op>>( &getContext());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/quantize.cc
enable_per_channel_quantized_weight_ = enable_per_channel_quantized_weight; } private: void runOnOperation() override; }; void QuantizePass::runOnOperation() { ModuleOp module_op = getOperation(); MLIRContext& ctx = getContext(); RewritePatternSet patterns(&ctx); patterns.add<StableHloQuantization, StableHloQuantizationReverse>(&ctx); PopulateCommonQuantizationPatterns(ctx, patterns,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 07:08:19 UTC 2024 - 5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/executor_island_coarsening.cc
YieldOp new_yield_op = CreateNewIslandYieldOp(new_island, island_operands_and_results.results); // Move inner ops from original islands into the new island. MoveInnerOpsToNewIsland(merged_island, new_yield_op.getOperation()); // Update control inputs to point to the new merged island. for (IslandOp island : merged_island.islands) island.getControl().replaceAllUsesWith(new_island.getControl());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 19.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/verify_quant_legalization.cc
} bool IsMhloUniformQuantizedOp(Operation& op) { return llvm::isa<mhlo::UniformQuantizeOp, mhlo::UniformDequantizeOp>(op); } void VerifyQuantLegalization::runOnOperation() { Operation* func_op = getOperation(); auto walk_result = func_op->walk([&](Operation* op) { // Verify all uq and qint types are lowered. if (llvm::any_of(op->getOperandTypes(), IsQuantType) ||
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.5K bytes - Viewed (0)