Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 382 for Sizes (0.04 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/cc/const_op_size.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops.h"
    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_types.h"
    
    namespace mlir {
    namespace quant {
    namespace {
    
    // For types that have varying sizes or difficult to determine the size of, each
    // element is arbitrarily considered to be 4 bytes.
    constexpr int64_t kAssumedNumBytesPerElem = 4;
    
    int64_t GetSizeOfIntOrFloatConst(TF::ConstOp const_op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 14 04:37:13 UTC 2022
    - 2.7K bytes
    - Viewed (0)
  2. src/crypto/subtle/xor_test.go

    	})
    }
    
    func BenchmarkXORBytes(b *testing.B) {
    	dst := make([]byte, 1<<15)
    	data0 := make([]byte, 1<<15)
    	data1 := make([]byte, 1<<15)
    	sizes := []int64{1 << 3, 1 << 7, 1 << 11, 1 << 15}
    	for _, size := range sizes {
    		b.Run(fmt.Sprintf("%dBytes", size), func(b *testing.B) {
    			s0 := data0[:size]
    			s1 := data1[:size]
    			b.SetBytes(int64(size))
    			for i := 0; i < b.N; i++ {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:51:19 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. src/go/internal/srcimporter/srcimporter.go

    	"strings"
    	"sync"
    	_ "unsafe" // for go:linkname
    )
    
    // An Importer provides the context for importing packages from source code.
    type Importer struct {
    	ctxt     *build.Context
    	fset     *token.FileSet
    	sizes    types.Sizes
    	packages map[string]*types.Package
    }
    
    // New returns a new Importer for the given context, file set, and map
    // of packages. The context is used to resolve import paths to package paths,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 18:54:32 UTC 2022
    - 8.2K bytes
    - Viewed (0)
  4. test/fixedbugs/bug122.go

    // Copyright 2009 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.
    
    package main
    
    func main() {
    	// should allow at most 2 sizes
    	a := make([]int, 10, 20, 30, 40); // ERROR "too many|expects 2 or 3 arguments; found 5"
    	_ = a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 28 18:13:13 UTC 2023
    - 334 bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/testdata/gen/zeroGen.go

    // zero the data they are supposed to and clobber no adjacent values.
    
    // run as `go run zeroGen.go`.  A file called zero.go
    // will be written into the parent directory containing the tests.
    
    var sizes = [...]int{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 15, 16, 17, 23, 24, 25, 31, 32, 33, 63, 64, 65, 1023, 1024, 1025}
    var usizes = [...]int{8, 16, 24, 32, 64, 256}
    
    func main() {
    	w := new(bytes.Buffer)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 20 02:13:02 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  6. src/compress/flate/reader_test.go

    	})
    }
    
    var levelTests = []struct {
    	name  string
    	level int
    }{
    	{"Huffman", HuffmanOnly},
    	{"Speed", BestSpeed},
    	{"Default", DefaultCompression},
    	{"Compression", BestCompression},
    }
    
    var sizes = []struct {
    	name string
    	n    int
    }{
    	{"1e4", 1e4},
    	{"1e5", 1e5},
    	{"1e6", 1e6},
    }
    
    func doBench(b *testing.B, f func(b *testing.B, buf []byte, level, n int)) {
    	for _, suite := range suites {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 09 19:12:23 UTC 2020
    - 2.3K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/remat/rematerializer.h

     public:
      Rematerializer() = default;
      virtual ~Rematerializer() = default;
    
      // The type used for memory sizes (in bytes) and differences thereof.
      using SizeT = int64_t;
    
      // The memory profile: The i-th element gives the amount of memory
      // that is needed when performing the i-th operation. This is the
      // sum of the sizes of
      //
      // (1) input tensors of that operation,
      // (2) output tensors of that operation,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 14 20:57:44 UTC 2023
    - 12K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/testers/ListEqualsTester.java

        assertFalse(
            "Lists of different sizes should not be equal.",
            getList().equals(new ArrayList<E>(fewerElements)));
      }
    
      public void testEquals_longerList() {
        Collection<E> moreElements = getSampleElements(getNumElements() + 1);
        assertFalse(
            "Lists of different sizes should not be equal.",
            getList().equals(new ArrayList<E>(moreElements)));
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 3.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    			args: args{v: reflect.ValueOf([]example.Pod{}), maxCapacity: 10, sizes: []int{1, 12}},
    			cap:  10,
    		},
    		{
    			name: "takes max",
    			args: args{v: reflect.ValueOf([]example.Pod{}), maxCapacity: 10, sizes: []int{8, 4}},
    			cap:  8,
    		},
    		{
    			name: "with existing capacity above max",
    			args: args{initialCapacity: 12, maxCapacity: 10, sizes: []int{8, 4}},
    			cap:  12,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/collect/testing/testers/SetEqualsTester.java

        assertFalse(
            "Sets of different sizes should not be equal.",
            getSet().equals(MinimalSet.from(fewerElements)));
      }
    
      public void testEquals_largerSet() {
        Collection<E> moreElements = getSampleElements(getNumElements() + 1);
        assertFalse(
            "Sets of different sizes should not be equal.",
            getSet().equals(MinimalSet.from(moreElements)));
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jan 09 20:10:38 UTC 2018
    - 3.5K bytes
    - Viewed (0)
Back to top