- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 95 for eraseOp (0.23 sec)
-
tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc
fused_ln_lstm_func_ = createLstmCompositeFunc(builder_.get(), true, false); } 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_;
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/tensorflow/transforms/host_runtime/tpu_merge_variables_with_execute.cc
builder->create<tf_device::ReturnOp>(old_terminator->getLoc(), merged_execute_launch.getResults()); old_terminator->erase(); // Remove the original TPUExecute op. execute_launch.erase(); // Move all regions from old parallel_execute to new parallel_execute. for (auto region : llvm::zip(new_parallel_execute_op->getRegions(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 29 17:52:11 UTC 2024 - 27K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/reduce_while_operands.cc
!cond.getArgument(i).use_empty()) { explicitly_consumed_ids.push_back(i); } } // Empty consumed_element_ids implies none of results is used. if (explicitly_consumed_ids.empty()) { while_op.erase(); return true; } // If every element is consumed, one can't reduce any operand. if (explicitly_consumed_ids.size() == n) { return false; } // Build the dependency graph.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 10.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/resource_op_lifting_cleanup.cc
return std::get<TF::MlirLocalVarOp>(op).getResource(); } } void LocalVarOp_erase(LocalVarOp &op) { if (auto var_handle_op = std::get_if<TF::VarHandleOp>(&op)) { var_handle_op->erase(); } else { std::get<TF::MlirLocalVarOp>(op).erase(); } } std::optional<LocalVarOp> IsLocalVarOp(Operation &op) { if (TF::MlirLocalVarOp mlir_local_var_op = llvm::dyn_cast<TF::MlirLocalVarOp>(&op)) {
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/tensorflow/transforms/promote_resources_to_args.cc
block.eraseArgument(argument_index_to_remove); argument_types.erase(argument_types.begin() + argument_index_to_remove); } // Rewrite return if there are variable writes. const int return_operands_size = return_operands.size(); if (return_operands_size > num_results_before) { builder.create<func::ReturnOp>(return_op.getLoc(), return_operands); return_op.erase(); }
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/transforms/executor_tpuv1_island_coarsening.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 27.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_partitioning.cc
if (failed(UpdateReadUses(read_var, partitioned_input, partitioned_read, partitioned_reads, is_packed))) return failure(); read_var->erase(); if (partitioned_input->use_empty()) partitioned_input->erase(); } return mlir::TF::RemoveSingletonParallelExecuteOp(parallel_execute, &builder); } void TPUResourceReadsWritesPartitioningPass::runOnOperation() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 11.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/parallel_execute_to_islands.cc
builder->setInsertionPoint(terminator); auto yield = builder->create<tf_executor::YieldOp>( terminator->getLoc(), terminator->getOperands()); terminator->erase(); // Create new island for each region. builder->setInsertionPoint(island_op); auto execute_island = builder->create<tf_executor::IslandOp>( island_op.getLoc(), yield.getOperandTypes(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 19 19:47:16 UTC 2023 - 11.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/pywrap_quantize_model.cc
// for CPU. Note the 'tpu' value should be the same as `TPU` defined in // tensorflow/python/saved_model/tag_constants.py. if (quantization_options.has_debugger_config()) { tags.erase("tpu"); } py_function_library.SaveExportedModel( dst_saved_model_path, *exported_model, src_saved_model_path, tags, signature_def_map); return absl::OkStatus(); },
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 09 06:33:29 UTC 2024 - 12K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/experimental/remat/rematerializer.cc
} void Insert(const int item, std::vector<int>& items) { const auto [iter, found] = Find(item, items); if (!found) items.insert(iter, item); } void Erase(const int item, std::vector<int>& items) { const auto [iter, found] = Find(item, items); if (found) items.erase(iter); } } // namespace int Rematerializer::AddOperation(const bool is_stateful) { operations_.emplace_back();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 14 20:57:44 UTC 2023 - 13.7K bytes - Viewed (0)