- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 108 for FuncOp (0.13 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/tfg-to-tfe.cc
// will be the operations inside the function body rather than representing // them in the function signature. FunctionType func_type = rewriter.getFunctionType({}, {}); func::FuncOp func = rewriter.create<func::FuncOp>( loc, kImportModelDefaultGraphFuncName, func_type); rewriter.setInsertionPointToStart(func.addEntryBlock()); auto executor_graph =
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 21.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_types.cc
} else if (auto const_op = llvm::dyn_cast<TF::ConstOp>(op)) { return !IsIllegalType(const_op.getOutput().getType()); } // The FuncOp type can contain types that the op's operand and result // types do not contain. if (auto func = dyn_cast<func::FuncOp>(op)) { if (!converter_.isSignatureLegal(func.getFunctionType())) return false; } return converter_.isLegal(op); }); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc
void PrepareDynamicRangeQuantizePass::removeAllStatsOp(func::FuncOp func) { func.walk([&](quantfork::StatisticsOp stats_op) { stats_op.replaceAllUsesWith(stats_op.getArg()); stats_op.erase(); }); } void PrepareDynamicRangeQuantizePass::runOnOperation() { func::FuncOp func = getOperation(); MLIRContext* ctx = func.getContext(); if (enable_float16_quantization_) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 20.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/insert_weight_param.cc
const StringRef function_name = GetEntryFunctionName(op); const auto module_op = op->getParentOfType<ModuleOp>(); const SymbolTable symbol_table(module_op); func::FuncOp func = symbol_table.lookup<func::FuncOp>(function_name); if (function_name.contains("conv")) { return (*(func.getOps<mlir::stablehlo::ConvolutionOp>().begin())) .getDimensionNumbers()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 05:56:10 UTC 2024 - 10.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_device_passes.td
let constructor = "TFDevice::CreateAnnotateParameterReplicationPass()"; } def DeviceAttributeToLaunchPass : Pass<"tf-device-attribute-to-launch", "mlir::func::FuncOp"> { let summary = "Wraps each TF op which has a non-empty device attribute in a tf_device.launch."; let description = [{ This pass wraps TF ops which have a non-empty device attribute in a tf_device.lauch with
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 17 18:52:57 UTC 2024 - 12.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/quantize.cc
} return std::make_unique<QuantizePass>(updated_quant_specs); } std::unique_ptr<OperationPass<func::FuncOp>> CreateDefaultQuantizePass() { return std::make_unique<QuantizePass>(); } std::unique_ptr<OperationPass<func::FuncOp>> CreateQuantizePass( const bool verify_numeric, const bool whole_model_verify, const bool legacy_float_scale,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 20:30:06 UTC 2024 - 13.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize_drq.cc
// processing the function for dynamic range quantization. Therefore, this // method preprocess the function to remove all stats ops. void removeAllStatsOp(func::FuncOp func); void runOnOperation() override; private: QuantizationSpecs quant_specs_; OpSet op_set_; Option<bool> enable_per_channel_quantization_{
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/post_quantize.cc
std::unique_ptr<OperationPass<func::FuncOp>> CreatePostQuantizePass( bool emit_quant_adaptor_ops, const quant::CustomOpMap& custom_op_map) { return std::make_unique<PostQuantizePass>(emit_quant_adaptor_ops, custom_op_map); } std::unique_ptr<OperationPass<func::FuncOp>> CreatePostQuantizePass() { return std::make_unique<PostQuantizePass>(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/c/c_api_unified_experimental_mlir.cc
// TODO(srbs): Use this. string device_name_; }; // MlirFunction is a thin wrapper over a FuncOp. class MlirFunction : public AbstractFunction { public: explicit MlirFunction(std::unique_ptr<MLIRContext> context, OwningOpRef<mlir::ModuleOp> module, func::FuncOp func) : AbstractFunction(kMlir), context_(std::move(context)), module_(std::move(module)),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 28.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_custom_aggregation_ops.cc
RewritePatternSet patterns(ctx); func::FuncOp func = getOperation(); patterns.add<AddCustomAggregationOp>(ctx, calib_opts_); if (failed(applyPatternsAndFoldGreedily(func, std::move(patterns)))) { func.emitError() << "quant-insert-custom-aggregation-ops failed."; signalPassFailure(); } } } // namespace std::unique_ptr<OperationPass<func::FuncOp>>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 14.8K bytes - Viewed (0)