- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 269 for walkIf (0.2 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/cc/debugger.cc
namespace stablehlo::quantization { void DisableDebugging(mlir::ModuleOp module_op) { module_op.walk( [](mlir::TF::DumpTensorOp dump_op) { dump_op.setEnabled(false); }); } void ChangeToQuantizedFilename(mlir::ModuleOp module_op) { module_op.walk([](mlir::TF::DumpTensorOp dump_op) { dump_op.setFileName("quantized_tensor_data.pb"); }); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 00:17:12 UTC 2024 - 1.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/move_tpu_compile_to_front.cc
struct MoveTpuCompileToFrontPass : public impl::MoveTpuCompileToFrontPassBase<MoveTpuCompileToFrontPass> { void runOnOperation() override; }; void MarkCompilationOps(Operation* func) { func->walk([&](Operation* op) { if (llvm::isa<TF::_TPUCompileMlirOp>(op)) { op->setAttr("_is_compilation", UnitAttr::get(func->getContext())); op = op->getParentOp(); while (op && op != func) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 17 00:26:18 UTC 2023 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/localize_var_handles.cc
OpBuilder globalBuilder(module.getBodyRegion()); module.walk( [&](TF::ReadVariableOp op) { MaybeCreateVarHandleForOp(op, solver); }); module.walk( [&](TF::AssignVariableOp op) { MaybeCreateVarHandleForOp(op, solver); }); module.walk( [&](TF::IteratorGetNextOp op) { MaybeCreateVarHandleForOp(op, solver); }); } } // namespace
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Mar 06 23:53:00 UTC 2024 - 5K bytes - Viewed (0) -
pkg/volume/volume_linux.go
// from filepath.Walk: // - List of files/dirs is not sorted for performance reasons // - callback walkFunc is invoked on root directory after visiting children dirs and files func walkDeep(root string, walkFunc filepath.WalkFunc) error { info, err := os.Lstat(root) if err != nil { return walkFunc(root, nil, err) } return walk(root, info, walkFunc) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 03 19:34:37 UTC 2023 - 6.5K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/support/WalkReproduciblyTest.kt
import org.hamcrest.CoreMatchers.equalTo import org.hamcrest.MatcherAssert.assertThat import org.junit.Test class WalkReproduciblyTest : FolderBasedTest() { @Test fun `walks directory tree top-down yielding sorted files`() { withFolders { "root" { withFile("root-f2") "b" { withFile("b-f1") }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 1.9K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/initialization/transform/InstrumentationAnalysisTransform.java
// We cannot inject internal services in to the transform directly, but we can create them via object factory ClasspathWalker walker = internalServices.get().getClasspathWalker(); walker.visit(artifact, entry -> { if (entry.getName().endsWith(".class") && !isInUnsupportedMrJarVersionedDirectory(entry)) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 23 13:19:14 UTC 2024 - 9.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tpu_identity_pruning.cc
// results. void RemoveIdentityFromRegion(Region& region) { region.walk([](Operation* op) { if (isa<TF::IdentityOp, TF::IdentityNOp>(op)) { op->replaceAllUsesWith(op->getOperands()); op->erase(); } }); } void TPUIdentityPruning::runOnOperation() { SmallVector<tf_device::ClusterOp, 4> clusters; getOperation().walk( [&](tf_device::ClusterOp cluster) { clusters.push_back(cluster); });
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 05 23:50:19 UTC 2022 - 4.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/tpu_cluster_util.cc
CallGraphNode* node = call_graph.resolveCallable(call, symbol_table); pending_call_nodes.emplace_back(node, tpu_cluster); } }; // Traverse ops in each TPU cluster. auto result = module.walk([&](tf_device::ClusterOp tpu_cluster) { std::optional<std::string> host_device; if (pass_host_device) { std::string host_device_value; if (failed(tensorflow::GetHostDeviceOutsideComputation(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 06 04:50:13 UTC 2023 - 4.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/verify_no_outside_compilation_markers_pass.cc
} bool HasChildLaunchDeviceOp(Operation& op) { auto cluster_op = dyn_cast<tf_device::ClusterOp>(op); if (cluster_op == nullptr) return false; auto walk_result = cluster_op->walk([&](Operation* op) { if (IsLaunchOp(*op)) return WalkResult::interrupt(); return WalkResult::advance(); }); return walk_result.wasInterrupted(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Aug 22 19:52:08 UTC 2023 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/xla_rewrite_util_test.cc
module->walk([&](mlir::tf_device::ClusterFuncOp cluster_func) { cluster_func_ops.push_back(cluster_func); }); EXPECT_EQ(cluster_func_ops.size(), 1); EXPECT_TRUE(mlir::succeeded(tensorflow::EraseClusterFuncs(cluster_func_ops))); llvm::SmallVector<mlir::tf_device::ClusterFuncOp, 4> new_cluster_func_ops; module->walk([&](mlir::tf_device::ClusterFuncOp cluster_func) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 4.3K bytes - Viewed (0)