Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 330 for Loops (0.05 sec)

  1. tensorflow/cc/ops/while_loop.h

    //     loop. See core/graph/while_context.h for more details on
    //     WhileContexts. This is set to false for loops used as part of gradient
    //     computations, since they're part of the gradient for a loop in the
    //     forward-pass.
    //     TODO(skyewm): revisit this. Should we create WhileContexts for all loops,
    //     even if we don't need them?
    // * cond_output: if non-null, the output of the predicate is returned. This
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 24 08:24:58 UTC 2020
    - 3.4K bytes
    - Viewed (0)
  2. internal/dsync/dsync_test.go

    	}
    }
    
    // Borrowed from mutex_test.go
    func HammerMutex(m *DRWMutex, loops int, cdone chan bool) {
    	for i := 0; i < loops; i++ {
    		m.Lock(id, source)
    		m.Unlock(context.Background())
    	}
    	cdone <- true
    }
    
    // Borrowed from mutex_test.go
    func TestMutex(t *testing.T) {
    	loops := 200
    	if testing.Short() {
    		loops = 5
    	}
    	c := make(chan bool)
    	m := NewDRWMutex(ds, "test")
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Dec 24 03:49:07 UTC 2022
    - 11K bytes
    - Viewed (0)
  3. test/return.go

    		panic(3)
    	}
    } // ERROR "missing return"
    
    
    // for { loops that never break are okay.
    
    func _() int {
    	print(1)
    	for {}
    }
    
    func _() int {
    	for {
    		for {
    			break
    		}
    	}
    }
    
    func _() int {
    	for {
    		L:
    		for {
    			break L
    		}
    	}
    }
    
    // for { loops that break are not okay.
    
    func _() int {
    	print(1)
    	for { break }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 32.7K bytes
    - Viewed (0)
  4. test/typecheckloop.go

    // errorcheck
    
    // Copyright 2015 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Verify that constant definition loops are caught during
    // typechecking and that the errors print correctly.
    
    package main
    
    const A = 1 + B // ERROR "constant definition loop\n.*A uses B\n.*B uses C\n.*C uses A|initialization cycle"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 23 20:27:09 UTC 2022
    - 528 bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/tighten.go

    		for _, b := range f.Blocks {
    			origloop := loops.b2l[b.ID]
    			for _, v := range b.Values {
    				t := target[v.ID]
    				if t == nil {
    					continue
    				}
    				targetloop := loops.b2l[t.ID]
    				for targetloop != nil && (origloop == nil || targetloop.depth > origloop.depth) {
    					t = idom[targetloop.header.ID]
    					target[v.ID] = t
    					targetloop = loops.b2l[t.ID]
    				}
    			}
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 16 01:01:38 UTC 2023
    - 7.7K bytes
    - Viewed (0)
  6. guava/src/com/google/common/graph/GraphConstants.java

              + "that allows parallel edges, call allowsParallelEdges(true) on the Builder.";
      static final String SELF_LOOPS_NOT_ALLOWED =
          "Cannot add self-loop edge on node %s, as self-loops are not allowed. To construct a graph "
              + "that allows self-loops, call allowsSelfLoops(true) on the Builder.";
      static final String NOT_AVAILABLE_ON_UNDIRECTED =
          "Cannot call source()/target() on a EndpointPair from an undirected graph. Consider calling "
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. src/reflect/iter.go

    		// cannot use range T(v) because no core type.
    		for i := T(0); i < T(v); i++ {
    			if !yield(ValueOf(i)) {
    				return
    			}
    		}
    	}
    }
    
    // Seq returns an iter.Seq[Value] that loops over the elements of v.
    // If v's kind is Func, it must be a function that has no results and
    // that takes a single argument of type func(T) bool for some type T.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 13:40:11 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  8. pkg/kubelet/pluginmanager/plugin_manager.go

    	"k8s.io/kubernetes/pkg/kubelet/pluginmanager/reconciler"
    )
    
    // PluginManager runs a set of asynchronous loops that figure out which plugins
    // need to be registered/deregistered and makes it so.
    type PluginManager interface {
    	// Starts the plugin manager and all the asynchronous loops that it controls
    	Run(sourcesReady config.SourcesReady, stopCh <-chan struct{})
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 01 05:56:33 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  9. guava/src/com/google/common/graph/EndpointPairIterator.java

            }
            if (!advance()) {
              return endOfData();
            }
          }
        }
      }
    
      /**
       * If the graph is undirected, each unordered [node, otherNode] pair (except self-loops) will be
       * visited twice if there is an edge connecting them. To avoid returning duplicate {@link
       * EndpointPair}s, we keep track of the nodes that we have visited. When processing endpoint
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jul 09 17:31:04 UTC 2021
    - 5K bytes
    - Viewed (0)
  10. pkg/api/service/warnings.go

    	// ..."
    	// https://datatracker.ietf.org/doc/rfc5952/
    	if ip.Is6() && ip.String() != address {
    		return []string{fmt.Sprintf("%s: IPv6 address %q is not in RFC 5952 canonical format (%q), which may cause controller apply-loops", fieldPath, address, ip.String())}
    	}
    	return []string{}
    }
    
    func getWarningsForCIDR(fieldPath *field.Path, cidr string) []string {
    	// IPv4 addresses with leading zeros CVE-2021-29923 are not valid in golang since 1.17
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 26 22:57:57 UTC 2023
    - 4.2K bytes
    - Viewed (0)
Back to top