- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 234 for eraseOp (0.25 sec)
-
tensorflow/compiler/mlir/lite/transforms/raise_custom_ops.cc
} custom_op->setAttrs(inner_op->getAttrs()); builder.create<YieldOp>(loc, inner_op->getResults()); custom_op.getBody().takeBody(region); op->replaceAllUsesWith(custom_op); op->erase(); } } } // namespace std::unique_ptr<OperationPass<func::FuncOp>> CreateRaiseCustomOpsPass() { return std::make_unique<RaiseCustomOpsPass>(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 17 07:31:01 UTC 2023 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/merge_duplicate_resource_ops.cc
op.replaceAllUsesWith(existing_resource->getParentOp()->getResults()); ops_to_remove.push_back(&op); } // Remove op after the loop to avoid crash. for (Operation* op : ops_to_remove) { op->erase(); } } static PassRegistration<MergeDuplicateResourceOpsPass> pass{}; } // namespace std::unique_ptr<OperationPass<func::FuncOp>> CreateMergeDuplicateResourceOpsPass() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 26 04:26:16 UTC 2023 - 4.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sink_constant.cc
LLVM_DEBUG(llvm::dbgs() << "Re-use sunk constant " << use->get() << "\n in " << use->get() << "\n"); if (constant.use_empty()) const_op.erase(); return; } if (constant.hasOneUse()) { LLVM_DEBUG(llvm::dbgs() << "Moved constant " << constant << "\n"); const_op.getOperation()->moveBefore(&body.begin()->front());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 4.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/topological_sort.cc
if (!best) { assert(ready.empty()); return result; // happens for unused results for ops in the todo list } // Consider this operation emitted, and make its results available. ready.erase(std::find(ready.begin(), ready.end(), best)); previous_op = best; for (Value result : best->getResults()) { todo.push(result); } for (Operation* successor : ctrlSuccessors(best)) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Nov 08 17:01:11 UTC 2022 - 5K bytes - Viewed (0) -
src/internal/chacha8rand/chacha8.go
if s.c == ctrMax-ctrInc { s.n = uint32(len(s.buf)) - reseed } } // Reseed reseeds the state with new random values. // After a call to Reseed, any previously returned random values // have been erased from the memory of the state and cannot be // recovered. func (s *State) Reseed() { var seed [4]uint64 for i := range seed { for { x, ok := s.Next() if ok { seed[i] = x break
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:47:29 UTC 2024 - 4.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/unwrap_xla_call_module_op.cc
for (auto [result, new_result] : llvm::zip_equal(op.getResults(), new_op.getResults())) { new_op_mapper.map(result, new_result); } } call_op.erase(); } void UnwrapXlaCallModuleOpPass::runOnOperation() { ModuleOp module_op = getOperation(); SymbolTable symbol_table(module_op); for (auto func_op : module_op.getOps<func::FuncOp>()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 05 07:39:40 UTC 2024 - 4.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/launch_to_device_attribute.cc
Operation* launch_op = launch.getOperation(); launch_op->getBlock()->getOperations().splice( launch_op->getIterator(), launch.GetBody().getOperations(), body.begin(), body.end()); launch.erase(); return success(); } void LaunchToDeviceAttributePass::runOnOperation() { const Dialect* tf_dialect = getContext().getLoadedDialect("tf"); if (!tf_dialect) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_resource_read_for_write.cc
block.addArgument(read_operand.getType(), loc); func.setType(FunctionType::get(&getContext(), block.getArgumentTypes(), func.getResultTypes())); cluster_func.erase(); } } } // namespace std::unique_ptr<OperationPass<ModuleOp>> CreateTPUResourceReadForWritePass() { return std::make_unique<TPUResourceReadForWritePass>(); } } // namespace TFTPU
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 16:54:40 UTC 2024 - 5.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/cc/static_range_ptq.cc
*ctx, *module)); // Remove the `tpu` tag for exporting because the output quantized model is // essentially a CPU model. tags.erase("tpu"); py_function_library.SaveExportedModel( dst_saved_model_path, post_calibrated_exported_model, src_saved_model_path, tags, signature_def_map); return absl::OkStatus(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 24 12:49:45 UTC 2024 - 6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tpu_model_to_cpu.cc
return success(); } // Remove TPU operations. if (isa<TF::TPUReplicateMetadataOp, TF::TPUCompilationResultOp, TF::TPUOrdinalSelectorOp>(op)) { op->erase(); } else if (auto replicated_input_op = dyn_cast_or_null<TF::TPUReplicatedInputOp>(op)) { // TODO(b/267700110): Handle multiple input/output cases.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 5.5K bytes - Viewed (0)