- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 662 for walkFn (0.21 sec)
-
test/escape_calls.go
g(&f(x[:])[0]) } type Node struct { s string left, right *Node } func walk(np **Node) int { // ERROR "leaking param content: np" n := *np w := len(n.s) if n == nil { return 0 } wl := walk(&n.left) wr := walk(&n.right) if wl < wr { n.left, n.right = n.right, n.left // ERROR "ignoring self-assignment" wl, wr = wr, wl } *np = n
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Dec 05 22:06:07 UTC 2023 - 1.6K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl-provider-plugins/src/test/kotlin/org/gradle/kotlin/dsl/provider/plugins/precompiled/AccessorTypePrecedenceTest.kt
assertAccessorTypePrecedenceOf<ChooseA>( ChooseA::class, Base::class, Core::class, A::class, // because it appears first than B when walking up the tree starting at ChooseA B::class, ExtensionAware::class ) } @Test fun `classes before interfaces, subtypes before supertypes`() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 2.7K bytes - Viewed (0) -
cmd/kubeadm/app/util/patches/patches.go
} patches = append(patches, string(patchJSON)) } return &patchSet{ targetName: targetName, patchType: patchType, patches: patches, }, nil } // getPatchSetsFromPath walks a path, ignores sub-directories and non-patch files, and // returns a list of patchFile objects. func getPatchSetsFromPath(targetPath string, knownTargets []string, output io.Writer) ([]*patchSet, []string, []string, error) {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue May 28 08:48:22 UTC 2024 - 10.2K bytes - Viewed (0) -
src/cmd/fix/cftype.go
return false } typeof, _ := typecheck(&TypeConfig{}, f) changed := false // step 1: Find all the nils with the offending types. // Compute their replacement. badNils := map[any]ast.Expr{} walk(f, func(n any) { if i, ok := n.(*ast.Ident); ok && i.Name == "nil" && badType(typeof[n]) { badNils[n] = &ast.BasicLit{ValuePos: i.NamePos, Kind: token.INT, Value: "0"} } })
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Aug 07 00:25:49 UTC 2023 - 3.5K bytes - Viewed (0) -
src/runtime/unsafe.go
panicunsafestringlen() } if uintptr(len) > -uintptr(ptr) { if ptr == nil { panicunsafestringnilptr() } panicunsafestringlen() } } // Keep this code in sync with cmd/compile/internal/walk/builtin.go:walkUnsafeString func unsafestring64(ptr unsafe.Pointer, len64 int64) { len := int(len64) if int64(len) != len64 { panicunsafestringlen() } unsafestring(ptr, len) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:51:18 UTC 2024 - 3.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/bean/PropertyWalker.java
import org.gradle.internal.reflect.validation.TypeValidationContext; import org.gradle.internal.service.scopes.Scope; import org.gradle.internal.service.scopes.ServiceScope; /** * Walks properties declared by the type. */ @ServiceScope(Scope.Global.class) public interface PropertyWalker { void visitProperties(Object instance, TypeValidationContext validationContext, PropertyVisitor visitor);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 17 00:47:05 UTC 2024 - 1.1K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Throwables.java
* </pre> * * @throws IllegalArgumentException if there is a loop in the causal chain */ public static Throwable getRootCause(Throwable throwable) { // Keep a second pointer that slowly walks the causal chain. If the fast pointer ever catches // the slower pointer, then there's a loop. Throwable slowPointer = throwable; boolean advanceSlowPointer = false; Throwable cause;
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Mar 06 15:38:58 UTC 2024 - 20.6K bytes - Viewed (0) -
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)