Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 472 for clap (3.31 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/compile_mlir_util/convert_mhlo_quant_to_int.mlir

    // CHECK:         %[[DIV:.*]] = f32[] divide(f32[] %[[ARG0]],
    // CHECK:         %[[ADD:.*]] = f32[] add(f32[] %[[DIV]], f32[]
    // CHECK:         %[[CLAMP:.*]] = f32[] clamp(f32[] %[[MIN:.*]], f32[] %[[ADD]],
    // CHECK:         %[[ROUND:.*]] = f32[] round-nearest-even(f32[] %[[CLAMP]])
    // CHECK:         %[[CONVERT_0:.*]] = u8[] convert(f32[] %[[ROUND]])
    // CHECK:         %[[CONVERT_1:.*]] = s32[] convert(u8[] %[[CONVERT_0]])
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Sep 07 16:28:50 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. src/log/slog/record.go

    		r.nFront++
    	}
    	// Check if a copy was modified by slicing past the end
    	// and seeing if the Attr there is non-zero.
    	if cap(r.back) > len(r.back) {
    		end := r.back[:len(r.back)+1][len(r.back)]
    		if !end.isEmpty() {
    			// Don't panic; copy and muddle through.
    			r.back = slices.Clip(r.back)
    			r.back = append(r.back, String("!BUG", "AddAttrs unsafely called on copy of Record made without using Record.Clone"))
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:30:56 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/allocators.go

    		Len:  n,
    		Cap:  cap(b) * int(scale),
    	}
    	return *(*[]*Block)(unsafe.Pointer(&s))
    }
    func (c *Cache) freeBlockSlice(s []*Block) {
    	var base *Value
    	var derived *Block
    	scale := unsafe.Sizeof(base) / unsafe.Sizeof(derived)
    	b := unsafeheader.Slice{
    		Data: unsafe.Pointer(&s[0]),
    		Len:  int((uintptr(len(s)) + scale - 1) / scale),
    		Cap:  int((uintptr(cap(s)) + scale - 1) / scale),
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 15 23:00:54 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  4. test/slice3.go

    	raw := *(*[3]uintptr)(unsafe.Pointer(&x))
    	base, len, cap := raw[0] - arrayBase, raw[1], raw[2]
    	if xbase < 0 {
    		notOK()
    		println(desc, "=", base, len, cap, "want panic")
    		return
    	}
    	if cap != 0 && base != uintptr(xbase) || base >= 10 || len != uintptr(xlen) || cap != uintptr(xcap) {
    		notOK()
    		if cap == 0 {
    			println(desc, "=", base, len, cap, "want", "0-9", xlen, xcap)
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 2.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/optimize.td

    def RemoveRedundantCastOps : Pat<
      (TF_CastOp:$root_cast
        (TF_CastOp:$i8_cast
          (TF_ClipByValueOp:$clip $input, $min_value, $max_value),
          ConstBoolAttrFalse:$truncate2),
        ConstBoolAttrFalse:$truncate1),
      (TF_CastOp $clip, ConstBoolAttrFalse),
      [(TensorOf<[I8]> $i8_cast),
       (TensorOf<[I32]> $clip),
       (IsIntSplatValueEqual<"int32_t", "-128"> $min_value),
       (IsIntSplatValueEqual<"int32_t", "127"> $max_value)]>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  6. test/chancap.go

    	}
    	if len(c) != 3 || cap(c) != 10 {
    		println("chan len/cap ", len(c), cap(c), " want 3 10")
    		panic("fail")
    	}
    
    	c = make(T)
    	if len(c) != 0 || cap(c) != 0 {
    		println("chan len/cap ", len(c), cap(c), " want 0 0")
    		panic("fail")
    	}
    
    	n := -1
    	shouldPanic("makechan: size out of range", func() { _ = make(T, n) })
    	shouldPanic("makechan: size out of range", func() { _ = make(T, int64(n)) })
    	if ptrSize == 8 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 26 14:06:28 UTC 2018
    - 1.6K bytes
    - Viewed (0)
  7. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/DiagnosticToProblemListener.java

                }
            }
        }
    
        /**
         * Clamp the value to an int, or return {@link Diagnostic#NOPOS} if the value is too large.
         * <p>
         * This is used to ensure that we don't report invalid locations.
         *
         * @param value the value to clamp
         * @return either the clamped value, or {@link Diagnostic#NOPOS}
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 06:17:43 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  8. test/ken/array.go

    // Test arrays and slices.
    
    package main
    
    func setpd(a []int) {
    	//	print("setpd a=", a, " len=", len(a), " cap=", cap(a), "\n");
    	for i := 0; i < len(a); i++ {
    		a[i] = i
    	}
    }
    
    func sumpd(a []int) int {
    	//	print("sumpd a=", a, " len=", len(a), " cap=", cap(a), "\n");
    	t := 0
    	for i := 0; i < len(a); i++ {
    		t += a[i]
    	}
    	//	print("sumpd t=", t, "\n");
    	return t
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 2.3K bytes
    - Viewed (0)
  9. pilot/test/xdstest/extract.go

    	for _, cla := range cla {
    		if cla == nil {
    			continue
    		}
    		got[cla.ClusterName] = append(got[cla.ClusterName], ExtractEndpoints(cla)...)
    	}
    	return got
    }
    
    // ExtractHealthEndpoints returns all health and unhealth endpoints
    func ExtractHealthEndpoints(cla *endpoint.ClusterLoadAssignment) ([]string, []string) {
    	if cla == nil {
    		return nil, nil
    	}
    	healthy := []string{}
    	unhealthy := []string{}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Dec 19 22:42:42 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  10. test/fixedbugs/issue16949.go

    	sink = make([]byte, 0, 1.0)
    	sink = make([]byte, 0, float32(1.0)) // ERROR "non-integer.*cap|must be integer"
    	sink = make([]byte, 0, float64(1.0)) // ERROR "non-integer.*cap|must be integer"
    
    	sink = make([]byte, 1+0i)
    	sink = make([]byte, complex64(1+0i))  // ERROR "non-integer.*len|must be integer"
    	sink = make([]byte, complex128(1+0i)) // ERROR "non-integer.*len|must be integer"
    
    	sink = make([]byte, 0, 1+0i)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 23:56:19 UTC 2020
    - 1.1K bytes
    - Viewed (0)
Back to top