Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 6,893 for Size (0.07 sec)

  1. src/cmd/compile/internal/reflectdata/alg_test.go

    		a string
    		b int
    	}
    	const size = 1024
    	var (
    		str1 = "foobar"
    		str2 = "foobarz"
    
    		a [size]T2
    		c [size]T2
    	)
    
    	for i := 0; i < size; i++ {
    		a[i].a = str1
    		c[i].a = str1
    	}
    	c[len(c)-1].a = str2
    
    	b.ResetTimer()
    	for j := 0; j < b.N; j++ {
    		_ = a == c
    	}
    }
    
    const size = 16
    
    type T1 struct {
    	a [size]byte
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 21:55:14 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  2. test/fixedbugs/bug339.go

    // license that can be found in the LICENSE file.
    
    // Issue 1608.
    // Size used to be -1000000000.
    
    package main
    
    import "unsafe"
    
    func main() {
    	var a interface{} = 0
    	size := unsafe.Sizeof(a)
    	if size != 2*unsafe.Sizeof((*int)(nil)) {
    		println("wrong size: ", size)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 390 bytes
    - Viewed (0)
  3. docs_src/additional_status_codes/tutorial001_an.py

    items = {"foo": {"name": "Fighters", "size": 6}, "bar": {"name": "Tenders", "size": 3}}
    
    
    @app.put("/items/{item_id}")
    async def upsert_item(
        item_id: str,
        name: Annotated[Union[str, None], Body()] = None,
        size: Annotated[Union[int, None], Body()] = None,
    ):
        if item_id in items:
            item = items[item_id]
            item["name"] = name
            item["size"] = size
            return item
        else:
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 734 bytes
    - Viewed (0)
  4. cmd/erasure-decode_test.go

    	b.Run(" X0|X0 ", func(b *testing.B) { benchmarkErasureDecode(2, 2, 1, 1, size, b) })
    }
    
    func BenchmarkErasureDecode_4_64KB(b *testing.B) {
    	const size = 64 * 1024
    	b.Run(" 00|00 ", func(b *testing.B) { benchmarkErasureDecode(2, 2, 0, 0, size, b) })
    	b.Run(" 00|X0 ", func(b *testing.B) { benchmarkErasureDecode(2, 2, 0, 1, size, b) })
    	b.Run(" X0|00 ", func(b *testing.B) { benchmarkErasureDecode(2, 2, 1, 0, size, b) })
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jan 30 20:43:25 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  5. platforms/core-configuration/graph-serialization/src/main/kotlin/org/gradle/internal/serialize/graph/Combinators.kt

        readCollectionInto({ size -> ArrayList(size) }) {
            readString()
        }
    
    
    fun Decoder.readStringsSet(): Set<String> =
        readCollectionInto({ size -> LinkedHashSet(size) }) {
            readString()
        }
    
    
    inline fun <T> Encoder.writeCollection(collection: Collection<T>, writeElement: (T) -> Unit) {
        writeSmallInt(collection.size)
        for (element in collection) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:59:39 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apimachinery/pkg/runtime/types_proto.go

    			if err != nil {
    				return 0, err
    			}
    			i -= int(size)
    			if uint64(n1) != size {
    				// programmer error: the Size() method for protobuf does not match the results of LashramOt, which means the proto
    				// struct returned would be wrong.
    				return 0, fmt.Errorf("the Size() value of %T was %d, but NestedMarshalTo wrote %d bytes to data", b, size, n1)
    			}
    		} else {
    			i -= int(size)
    			n1, err := b.MarshalTo(data[i:])
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jul 25 18:54:00 UTC 2019
    - 2.6K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/quantization/lite/quantize_weights_test.cc

      ASSERT_EQ(output_model->subgraphs()->size(), model_->subgraphs()->size());
      const auto quantized_graph = output_model->subgraphs()->Get(0);
      // A dequantize op should be added.
      ASSERT_EQ(quantized_graph->operators()->size(),
                model_->subgraphs()->Get(0)->operators()->size() + 1);
      int num_custom_ops_found = 0;
      for (size_t i = 0; i < quantized_graph->operators()->size(); ++i) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 23:15:24 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/apps/v1beta2/generated.pb.go

    func (m *ControllerRevision) Marshal() (dAtA []byte, err error) {
    	size := m.Size()
    	dAtA = make([]byte, size)
    	n, err := m.MarshalToSizedBuffer(dAtA[:size])
    	if err != nil {
    		return nil, err
    	}
    	return dAtA[:n], nil
    }
    
    func (m *ControllerRevision) MarshalTo(dAtA []byte) (int, error) {
    	size := m.Size()
    	return m.MarshalToSizedBuffer(dAtA[:size])
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/networking/v1alpha1/generated.pb.go

    }
    
    func (m *IPAddress) Marshal() (dAtA []byte, err error) {
    	size := m.Size()
    	dAtA = make([]byte, size)
    	n, err := m.MarshalToSizedBuffer(dAtA[:size])
    	if err != nil {
    		return nil, err
    	}
    	return dAtA[:n], nil
    }
    
    func (m *IPAddress) MarshalTo(dAtA []byte) (int, error) {
    	size := m.Size()
    	return m.MarshalToSizedBuffer(dAtA[:size])
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 01 06:06:37 UTC 2024
    - 46.7K bytes
    - Viewed (0)
  10. src/test/java/org/codelibs/fess/dict/kuromoji/KuromojiFileTest.java

            assertEquals(2, itemList2.getPageSize());
    
            assertEquals(0, kuromojiFile.selectList(5, 5).size());
            assertEquals(0, kuromojiFile.selectList(-1, 5).size());
        }
    
        public void test_selectList2() {
            final PagingList<KuromojiItem> itemList = kuromojiFile.selectList(0, 5);
            for (int i = 0; i < itemList.size(); i++) {
                final KuromojiItem kuromojiItem = itemList.get(i);
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 7.3K bytes
    - Viewed (0)
Back to top