Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for __bits (0.24 sec)

  1. tensorflow/compiler/mlir/lite/tests/prepare-quantize-post-training-16bits.mlir

    // RUN: tf-opt %s -tfl-prepare-quantize="quantize-signed=true post-training-quantize=true activation-number-of-bits=16" -cse | FileCheck %s
    
    // CHECK-LABEL: QuantizeUnidirectionalLstmFullPerTensor
    func.func @QuantizeUnidirectionalLstmFullPerTensor(%arg0: tensor<1x2x3xf32>) -> (tensor<1x2x3xf32>) {
      %input = "quantfork.stats"(%arg0) {layerStats = dense<[0.0, 1.0]> : tensor<2xf32>} : (tensor<1x2x3xf32>) -> tensor<1x2x3xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test_base.py

          bias_shape: Optional[Sequence[int]] = None,
      ) -> module.Module:
        class EinsumModel(module.Module):
          """Einsum class."""
    
          def __init__(self):
            self._bias = None
            if bias_shape is not None:
              self._bias = array_ops.constant(
                  np.random.uniform(size=bias_shape), dtype=dtypes.float32
              )
    
            self._kernel = np.random.uniform(size=y_shape).astype('f4')
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  3. src/internal/types/testdata/check/shifts.go

    	// from src/compress/lzw/reader.go:90
    	{
    		var d struct {
    			bits     uint32
    			width    uint
    		}
    		_ = uint16(d.bits & (1<<d.width - 1))
    	}
    
    	// from src/debug/dwarf/buf.go:116
    	{
    		var ux uint64
    		var bits uint
    		x := int64(ux)
    		if x&(1<<(bits-1)) != 0 {}
    	}
    
    	// from src/encoding/asn1/asn1.go:160
    	{
    		var bytes []byte
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java

     * from {@link Double#equals}, as if implemented by:
     *
     * <pre>{@code
     * static boolean bitEquals(double x, double y) {
     *   long xBits = Double.doubleToRawLongBits(x);
     *   long yBits = Double.doubleToRawLongBits(y);
     *   return xBits == yBits;
     * }
     * }</pre>
     *
     * @author Doug Lea
     * @author Martin Buchholz
     * @since 11.0
     */
    @GwtIncompatible
    @J2ktIncompatible
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Apr 04 09:45:04 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  5. guava/src/com/google/common/math/LongMath.java

                result *= n;
                result /= i;
              }
              return result;
            } else {
              int nBits = LongMath.log2(n, RoundingMode.CEILING);
    
              long result = 1;
              long numerator = n--;
              long denominator = 1;
    
              int numeratorBits = nBits;
              // This is an upper bound on log2(numerator, ceiling).
    
              /*
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 07 17:50:39 UTC 2024
    - 44.6K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/symtab.go

    		setCarrierSym(t, s.Sym())
    		return s.Sym()
    	}
    	var (
    		symgostring = groupSym("go:string.*", sym.SGOSTRING)
    		symgofunc   = groupSym("go:func.*", sym.SGOFUNC)
    		symgcbits   = groupSym("runtime.gcbits.*", sym.SGCBITS)
    	)
    
    	symgofuncrel := symgofunc
    	if ctxt.UseRelro() {
    		symgofuncrel = groupSym("go:funcrel.*", sym.SGOFUNCRELRO)
    	}
    
    	symt := ldr.CreateSymForUpdate("runtime.symtab", 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 13 16:29:40 UTC 2023
    - 29.2K bytes
    - Viewed (0)
  7. src/math/big/natconv_test.go

    import (
    	"bytes"
    	"fmt"
    	"io"
    	"math/bits"
    	"strings"
    	"testing"
    )
    
    func TestMaxBase(t *testing.T) {
    	if MaxBase != len(digits) {
    		t.Fatalf("%d != %d", MaxBase, len(digits))
    	}
    }
    
    // log2 computes the integer binary logarithm of x.
    // The result is the integer n for which 2^n <= x < 2^(n+1).
    // If x == 0, the result is -1.
    func log2(x Word) int {
    	return bits.Len(uint(x)) - 1
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 12:54:00 UTC 2019
    - 16.8K bytes
    - Viewed (0)
  8. src/runtime/gc_test.go

    	// n must always be a multiple of 8, since gcBits is
    	// always rounded up 8 bytes.
    	for _, n := range []int{8, 16, 32, 64, 128} {
    		b.Run(fmt.Sprintf("bits=%d", n*8), func(b *testing.B) {
    			// Initialize a new byte slice with pseduo-random data.
    			bits := make([]byte, n)
    			rand.Read(bits)
    
    			b.ResetTimer()
    			for i := 0; i < b.N; i++ {
    				runtime.MSpanCountAlloc(s, bits)
    			}
    		})
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 05 22:33:52 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  9. src/cmd/link/internal/loadmacho/ldmacho.go

    		if sect.segname == "__TEXT" {
    			if sect.name == "__text" {
    				bld.SetType(sym.STEXT)
    			} else {
    				bld.SetType(sym.SRODATA)
    			}
    		} else {
    			if sect.name == "__bss" {
    				bld.SetType(sym.SNOPTRBSS)
    				bld.SetData(nil)
    			} else {
    				bld.SetType(sym.SNOPTRDATA)
    			}
    		}
    
    		sect.sym = s
    	}
    
    	// enter sub-symbols into symbol table.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 12 18:45:57 UTC 2022
    - 19.1K bytes
    - Viewed (0)
  10. src/runtime/export_test.go

    		lock(&mheap_.lock)
    		mheap_.spanalloc.free(unsafe.Pointer(s))
    		unlock(&mheap_.lock)
    	})
    }
    
    func MSpanCountAlloc(ms *MSpan, bits []byte) int {
    	s := (*mspan)(ms)
    	s.nelems = uint16(len(bits) * 8)
    	s.gcmarkBits = (*gcBits)(unsafe.Pointer(&bits[0]))
    	result := s.countAlloc()
    	s.gcmarkBits = nil
    	return result
    }
    
    const (
    	TimeHistSubBucketBits = timeHistSubBucketBits
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:50:53 UTC 2024
    - 46.1K bytes
    - Viewed (0)
Back to top