Search Options

Results per page
Sort
Preferred Languages
Advance

Results 161 - 170 of 518 for numeric (0.77 sec)

  1. tensorflow/compiler/jit/device_util.h

    #ifndef TENSORFLOW_COMPILER_JIT_DEVICE_UTIL_H_
    #define TENSORFLOW_COMPILER_JIT_DEVICE_UTIL_H_
    
    #include <functional>
    #include <memory>
    
    #include "absl/container/flat_hash_map.h"
    #include "absl/numeric/bits.h"
    #include "absl/strings/string_view.h"
    #include "absl/types/span.h"
    #include "tensorflow/compiler/tf2xla/xla_op_registry.h"
    #include "xla/status_macros.h"
    #include "xla/statusor.h"
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 17:18:31 UTC 2024
    - 7.1K bytes
    - Viewed (0)
  2. istioctl/pkg/writer/envoy/configdump/route.go

    	}
    	return w.Flush()
    }
    
    func describeRouteDomains(domains []string) string {
    	if len(domains) == 0 {
    		return ""
    	}
    	if len(domains) == 1 {
    		return domains[0]
    	}
    
    	// Return the shortest non-numeric domain.  Count of domains seems uninteresting.
    	max := 2
    	withoutPort := make([]string, 0, len(domains))
    	for _, d := range domains {
    		if !strings.Contains(d, ":") {
    			withoutPort = append(withoutPort, d)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 11 05:38:17 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  3. pkg/proxy/util/utils.go

    	}
    
    	// Append port to address.
    	if ip.To4() != nil {
    		return fmt.Sprintf("%s:%d", addr, port)
    	}
    	return fmt.Sprintf("[%s]:%d", addr, port)
    }
    
    // EnsureSysctl sets a kernel sysctl to a given numeric value.
    func EnsureSysctl(sysctl utilsysctl.Interface, name string, newVal int) error {
    	if oldVal, _ := sysctl.GetSysctl(name); oldVal != newVal {
    		if err := sysctl.SetSysctl(name, newVal); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 20 11:57:43 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. src/go/types/const.go

    func (check *Checker) representation(x *operand, typ *Basic) (constant.Value, Code) {
    	assert(x.mode == constant_)
    	v := x.val
    	if !representableConst(x.val, check, typ, &v) {
    		if isNumeric(x.typ) && isNumeric(typ) {
    			// numeric conversion : error msg
    			//
    			// integer -> integer : overflows
    			// integer -> float   : overflows (actually not possible)
    			// float   -> integer : truncated
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  5. src/cmd/vendor/github.com/google/pprof/internal/graph/dotgraph.go

    	FormatValue func(int64) string // A formatting function for values
    	Total       int64              // The total weight of the graph, used to compute percentages
    }
    
    const maxNodelets = 4 // Number of nodelets for labels (both numeric and non)
    
    // ComposeDot creates and writes a in the DOT format to the writer, using
    // the configurations given.
    func ComposeDot(w io.Writer, g *Graph, a *DotAttributes, c *DotConfig) {
    	builder := &builder{w, a, c}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 09 20:51:42 UTC 2022
    - 14.8K bytes
    - Viewed (0)
  6. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

        if (removalListener != null) {
          removalListener.onRemoval(RemovalNotification.create(key, value, cause));
        }
      }
    
      @SuppressWarnings("GoodTime") // timestamps as numeric primitives
      private V load(K key) throws ExecutionException {
        long startTime = ticker.read();
        V calculatedValue;
        try {
          calculatedValue = loader.load(key);
          put(key, calculatedValue);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Feb 27 19:19:19 UTC 2024
    - 21.6K bytes
    - Viewed (0)
  7. src/go/types/predicates.go

    }
    
    // isUntypedNumeric reports whether t is an untyped numeric type.
    // Safe to call from types that are not fully set up.
    func isUntypedNumeric(t Type) bool {
    	// Alias and named types cannot denote untyped types
    	// so there's no need to call Unalias or under, below.
    	b, _ := t.(*Basic)
    	return b != nil && b.info&IsUntyped != 0 && b.info&IsNumeric != 0
    }
    
    // IsInterface reports whether t is an interface type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/container_manager.go

    	HardEvictionThresholds   []evictionapi.Threshold
    }
    
    type Status struct {
    	// Any soft requirements that were unsatisfied.
    	SoftRequirements error
    }
    
    // parsePercentage parses the percentage string to numeric value.
    func parsePercentage(v string) (int64, error) {
    	if !strings.HasSuffix(v, "%") {
    		return 0, fmt.Errorf("percentage expected, got '%s'", v)
    	}
    	percentage, err := strconv.ParseInt(strings.TrimRight(v, "%"), 10, 0)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:22:13 UTC 2024
    - 9K bytes
    - Viewed (0)
  9. src/internal/types/testdata/check/issues1.go

    func convert[T1, T2 interface{~int | ~uint | ~float32}](v T1) T2 {
    	return T2(v)
    }
    
    func _() {
    	convert[int, uint](5)
    }
    
    // When testing binary operators, for +, the operand types must either be
    // both numeric, or both strings. The implementation had the same problem
    // with this check as the conversion issue above (issue #39623).
    
    func issue39623[T interface{~int | ~string}](x, y T) T {
    	return x + y
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:56:37 UTC 2023
    - 6K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/predicates.go

    	return !isTyped(t)
    }
    
    // isUntypedNumeric reports whether t is an untyped numeric type.
    // Safe to call from types that are not fully set up.
    func isUntypedNumeric(t Type) bool {
    	// Alias and named types cannot denote untyped types
    	// so there's no need to call Unalias or under, below.
    	b, _ := t.(*Basic)
    	return b != nil && b.info&IsUntyped != 0 && b.info&IsNumeric != 0
    }
    
    // IsInterface reports whether t is an interface type.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
Back to top