Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for linear_1 (0.23 sec)

  1. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/ChildMapFactory.java

    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Comparator;
    import java.util.List;
    
    public class ChildMapFactory {
        /**
         * If a node has fewer children, we use a linear search for the child.
         * We use this limit since {@link VfsRelativePath#compareToFirstSegment(String, CaseSensitivity)}
         * is about twice as slow as {@link VfsRelativePath#hasPrefix(String, CaseSensitivity)},
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/FlatMapProvider.java

            }
    
            // Note, that the potential side effect of the transformed provider
            // is going to be executed before this fixed side effect.
            // It is not possible to preserve linear execution order in the general case,
            // as the transformed provider can have side effects hidden under other wrapping providers.
            return Providers.internal(transformedProvider).withSideEffect(SideEffect.fixedFrom(value));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 23:22:41 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/jit/tests/device_compiler_test_helper.cc

    #include "xla/service/hlo.pb.h"
    #include "tensorflow/core/platform/path.h"
    #include "tensorflow/core/public/session.h"
    
    namespace tensorflow {
    namespace {
    
    // Creates a float tensor of linearly increasing values, starting from offset.
    Tensor CreateInputTensor(const TensorShape& shape, float offset) {
      Tensor tensor(DT_FLOAT, shape);
      for (int64 i = 0; i < tensor.flat<float>().size(); ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Feb 09 08:24:16 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/jit/xla_tensor.cc

      mutex_lock lock(mu_);
      if (!definition_event_) {
        return;
      }
    
      // The set of defined streams is expected to be very small indeed (usually
      // 1-2), so a simple linear scan should be fast enough.
      if (std::find(streams_defined_on_.begin(), streams_defined_on_.end(),
                    stream) != streams_defined_on_.end()) {
        // stream is in streams_defined_on_; it doesn't need to be waited on.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. src/net/http/mapping_test.go

    		"articles",
    	}
    	if len(children) != 32 {
    		panic("bad len")
    	}
    	for _, n := range []int{2, 4, 8, 16, 32} {
    		list := children[:n]
    		b.Run(fmt.Sprintf("n=%d", n), func(b *testing.B) {
    
    			b.Run("rep=linear", func(b *testing.B) {
    				var entries []entry[string, any]
    				for _, c := range list {
    					entries = append(entries, entry[string, any]{c, nil})
    				}
    				b.ResetTimer()
    				for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 17:47:07 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  6. src/regexp/backtrack.go

    // a bit vector with (length of input) * (length of prog) bits,
    // to make sure it never explores the same (character position, instruction)
    // state multiple times. This limits the search to run in time linear in
    // the length of the test.
    //
    // backtrack is a fast replacement for the NFA code on small
    // regexps when onepass cannot be used.
    
    package regexp
    
    import (
    	"regexp/syntax"
    	"sync"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 17:25:39 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  7. test/maplinear.go

    		t1 := time.Now()
    		f(n)
    		return time.Since(t1)
    	}
    
    	t0 := time.Now()
    
    	n := tries
    	fails := 0
    	for {
    		t1 := timeF(n)
    		t2 := timeF(2 * n)
    
    		// should be 2x (linear); allow up to 3x
    		if t2 < 3*t1 {
    			if false {
    				fmt.Println(typ, "\t", time.Since(t0))
    			}
    			return
    		}
    		// If n ops run in under a second and the ratio
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  8. src/unicode/utf16/utf16_test.go

    	// from https://en.wikipedia.org/wiki/UTF-16
    	{'\u007A', false},     // LATIN SMALL LETTER Z
    	{'\u6C34', false},     // CJK UNIFIED IDEOGRAPH-6C34 (water)
    	{'\uFEFF', false},     // Byte Order Mark
    	{'\U00010000', false}, // LINEAR B SYLLABLE B008 A (first non-BMP code point)
    	{'\U0001D11E', false}, // MUSICAL SYMBOL G CLEF
    	{'\U0010FFFD', false}, // PRIVATE USE CHARACTER-10FFFD (last Unicode code point)
    
    	{rune(0xd7ff), false}, // surr1-1
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 07 19:08:48 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  9. src/regexp/syntax/prog.go

    				if r == r1 {
    					return 0
    				}
    			}
    		}
    		return noMatch
    
    	case 2:
    		if r >= rune[0] && r <= rune[1] {
    			return 0
    		}
    		return noMatch
    
    	case 4, 6, 8:
    		// Linear search for a few pairs.
    		// Should handle ASCII well.
    		for j := 0; j < len(rune); j += 2 {
    			if r < rune[j] {
    				return noMatch
    			}
    			if r <= rune[j+1] {
    				return j / 2
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:50:01 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/net/http/httpguts/httplex.go

    			// No UTF-8 or non-ASCII allowed in tokens.
    			return false
    		}
    		if lowerASCII(byte(b)) != lowerASCII(t2[i]) {
    			return false
    		}
    	}
    	return true
    }
    
    // isLWS reports whether b is linear white space, according
    // to http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html#sec2.2
    //
    //	LWS            = [CRLF] 1*( SP | HT )
    func isLWS(b byte) bool { return b == ' ' || b == '\t' }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 8.7K bytes
    - Viewed (0)
Back to top