- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 107 for eraseOp (0.26 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_arguments.cc
} } return result; } void EraseReturnOperands(Region* region, llvm::BitVector& erase) { for (Block& block : region->getBlocks()) { for (Operation& op : block.getOperations()) { if (!op.hasTrait<OpTrait::ReturnLike>()) continue; op.eraseOperands(erase); } } } // Erases the given results from an operation, similar to what // Operation::eraseArguments does (but for results).
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/remove_vars_in_session_initializer.cc
dead_ops.insert(vars.begin(), vars.end()); // Removes relevant ops in topological order. for (auto& op : vars) RecursiveRemove(op, erase_list, dead_ops); // Erases the ops. for (auto op : erase_list) op->erase(); } void RemoveVariablesInSessionInitializerPass::runOnOperation() { ModuleOp module_op = getOperation(); for (auto init_func_op : GetInitializerFunctions(module_op)) {
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/tensorflow/transforms/graph_pruning.cc
} // Erase unreachable ops in reverse order so references don't need to be // dropped before removing an op. Going in reverse order will guarantee that // when an op to be erased is reached, there are no users left. for (Operation& op : llvm::make_early_inc_range(llvm::reverse(graph.GetBody()))) if (!reachable_ops.contains(&op)) op.erase(); } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 7.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model_optimize_global_tensors.mlir
// argument is not erased. "tf_saved_model.global_tensor"() { sym_name = "exported_unbound", tf_saved_model.exported_names = ["exported_unbound"], type = tensor<f32>, value = dense<42.> : tensor<f32> } : () -> () // CHECK: sym_name = "exported_unbound" // Test case: Check that a global tensor that isn't even bound to an argument // is erased.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 31 08:49:35 UTC 2023 - 9.3K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/tasks/options/MethodSignature.java
import java.lang.invoke.MethodType; import java.lang.reflect.Method; import java.util.Objects; /** * A representation of a method signature. Contains the method name, erased parameter types and erased return type. */ public final class MethodSignature { public static MethodSignature from(Method method) { return new MethodSignature(method.getName(), MethodType.methodType(
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Feb 16 17:15:11 UTC 2022 - 1.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/lite/tfl_to_std.cc
dq.getOutput().replaceAllUsesWith(dcast); dq.erase(); } else if (auto q = llvm::dyn_cast<QuantizeOp>(op)) { auto qcast = b.create<quantfork::QuantizeCastOp>( q.getLoc(), q.getOutput().getType(), q.getInput()); q.getOutput().replaceAllUsesWith(qcast); q.erase(); } else if (auto q = llvm::dyn_cast<ConstOp>(op)) { auto value = q.getValue();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 02:50:01 UTC 2024 - 3.5K bytes - Viewed (0) -
platforms/core-runtime/logging/src/test/groovy/org/gradle/internal/logging/console/MultiLineBuildProgressAreaTest.groovy
1 * ansi.eraseLine(Ansi.Erase.ALL) 1 * ansi.cursorDown(1) 1 * ansi.eraseLine(Ansi.Erase.ALL) 1 * ansi.cursorDown(1) 1 * ansi.eraseLine(Ansi.Erase.ALL) // Parking 1 * ansi.cursorDown(1) 1 * ansi.eraseLine(Ansi.Erase.ALL) 1 * ansi.cursorUp(absoluteDeltaRowToAreaTop)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:05:18 UTC 2023 - 8.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/remove_unused_while_results.cc
if (candidate_result == body_yield_operand) continue; if (!candidate_result.use_empty()) return false; } // Now we know that it is safe to erase the candidate op along with `result` // and the corresponding operand. Here we only erase the op and replace its // result usage with the corresponding block argument, the result and operand // will be removed later in a canonicalization pattern.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Nov 16 01:49:07 UTC 2022 - 5K bytes - Viewed (0) -
tensorflow/c/experimental/filesystem/plugins/gcs/expiring_lru_cache.h
ABSL_EXCLUSIVE_LOCKS_REQUIRED(mu_) { auto it = cache_.find(key); if (it == cache_.end()) { return false; } lru_list_.erase(it->second.lru_iterator); if (timer_seconds_() - it->second.timestamp > max_age_) { cache_.erase(it); return false; } *value = it->second.value; lru_list_.push_front(it->first); it->second.lru_iterator = lru_list_.begin();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jul 09 19:31:22 UTC 2020 - 6.3K bytes - Viewed (0) -
tensorflow/c/experimental/ops/gen/cpp/cpp_generator_test.cc
TF_CHECK_OK(ReadFileToString(env, source_file_name, &expected_source)); // Remove carriage returns (for Windows) expected_header.erase( std::remove(expected_header.begin(), expected_header.end(), '\r'), expected_header.end()); expected_source.erase( std::remove(expected_source.begin(), expected_source.end(), '\r'), expected_source.end()); EXPECT_EQ(expected_header, generated_header);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 18 17:02:28 UTC 2022 - 2.9K bytes - Viewed (0)