- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 445 for FuncOp (0.14 sec)
-
tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter.cc
std::optional<std::string> ExportRuntimeMetadata(mlir::ModuleOp module) { mlir::func::FuncOp main_fn = module.lookupSymbol<mlir::func::FuncOp>("main"); if (!main_fn) return std::string(""); flatbuffers::FlatBufferBuilder fb_builder; std::vector<mlir::func::FuncOp> funcs; funcs.push_back(main_fn); module.walk([&](mlir::func::FuncOp fn) { if (fn != main_fn) { funcs.push_back(fn); } });
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 06:11:34 UTC 2024 - 7.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/mark_functions_noinline.cc
// marked noinline should be specified by the `noinline-functions` option. class MarkFunctionsNoinlinePass : public PassWrapper<MarkFunctionsNoinlinePass, OperationPass<func::FuncOp>> { public: MLIR_DEFINE_EXPLICIT_INTERNAL_INLINE_TYPE_ID(MarkFunctionsNoinlinePass) explicit MarkFunctionsNoinlinePass() : MarkFunctionsNoinlinePass(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jan 18 02:52:57 UTC 2023 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/tac/transforms/target_annotation.cc
if (IsNonConstOp(op) && NotTFLQuantDequantizeOp(op) && !IsTerminatorOp(op) && !llvm::isa<func::ReturnOp, func::FuncOp, CallOpInterface>(op)) { SetTargetAnnotation(op, device_specs_flag_, &builder); } }); } } // namespace std::unique_ptr<OperationPass<func::FuncOp>> CreateTargetAnnotationPass( llvm::ArrayRef<std::string> device_specs) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 19 19:32:06 UTC 2023 - 5.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_saved_model_asset_sinking_pass.cc
absl::Status AddSessionInitializerAndInlineCheckpoint( ModuleOp module, absl::string_view checkpoint_path) { // The main function should be the only public function. func::FuncOp main_func = nullptr; for (auto func : module.getOps<func::FuncOp>()) { if (func.isPublic()) { if (main_func != nullptr) { return absl::InternalError("Only one public function is allowed."); } main_func = func;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/mark_initialized_variables.cc
tensorflow::Session* session) { auto functions_range = module.getOps<func::FuncOp>(); return mlir::failableParallelForEach( module.getContext(), functions_range.begin(), functions_range.end(), [&](func::FuncOp function) { return MarkInitializedVariablesInFunction(function, session); }); } } // namespace tf_saved_model
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 13 19:14:56 UTC 2023 - 4.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_quantized_functions.cc
} // Copy all functions used by this signature to the final MLIR module. for (func::FuncOp func : module_ref->getOps<func::FuncOp>()) { // Do nothing if the function already exists. if (symbol_table.lookup(func.getSymName()) != nullptr) continue; // Set the function to private and insert to the module. func::FuncOp new_func = func.clone(); new_func.setPrivate(); symbol_table.insert(new_func);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 05:52:39 UTC 2024 - 8.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalization_op_config_test.cc
module_, test::GetMlirModuleFromString(module_string, &context_)); context_.loadAllAvailableDialects(); return absl::OkStatus(); } absl::StatusOr<FuncOp> GetMain() { func::FuncOp main = module_->lookupSymbol<mlir::func::FuncOp>("main"); if (!main) { return absl::NotFoundError("Could not find main function"); } return main; } protected: MLIRContext context_;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 30 03:31:01 UTC 2024 - 8.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc
void TearDown() override { fused_lstm_func_.erase(); fused_lstm_func_cifg_.erase(); fused_ln_lstm_func_.erase(); builder_.reset(); } func::FuncOp fused_lstm_func_; func::FuncOp fused_lstm_func_cifg_; func::FuncOp fused_ln_lstm_func_; std::unique_ptr<mlir::MLIRContext> context_; std::unique_ptr<mlir::Builder> builder_; }; TEST_F(LstmUtilsTest, ConvertLSTMCellSimple) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_util.h
#include "mlir/IR/BuiltinOps.h" // from @llvm-project namespace tfrt { namespace fallback_async { bool IsArgConsumedByFallback(mlir::func::FuncOp func, int arg_index); void ForEachArgConsumedByFallback( mlir::func::FuncOp func, llvm::function_ref<void(int arg_index)> action); void ForEachArgConsumedByFallback( mlir::ModuleOp module,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 22 14:25:57 UTC 2022 - 1.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td
} def BatchMatMulToEinsumPass : Pass<"tf-batch-matmul-to-tf-einsum", "mlir::func::FuncOp"> { let summary = "Replace TF BatchMatMul op by TF Einsum op."; let constructor = "TF::CreateBatchMatMulToEinsumPass()"; } def CanonicalizeCompileAndReplicateAttributesPass : Pass<"tf-canonicalize-compile-and-replicate-attributes", "mlir::func::FuncOp"> { let summary = "Canonicalize compilation and replication attributes.";
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Jun 12 21:18:05 UTC 2024 - 99.6K bytes - Viewed (0)