Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for lengthOf (0.27 sec)

  1. tensorflow/c/c_api.cc

                          const void* value, size_t length) {
      tensorflow::StringPiece s(static_cast<const char*>(value), length);
      desc->node_builder.Attr(attr_name, s);
    }
    
    void TF_SetAttrStringList(TF_OperationDescription* desc, const char* attr_name,
                              const void* const* values, const size_t* lengths,
                              int num_values) {
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/LocalCacheTest.java

                    .maximumSize(maxSize));
        long totalCapacity = 0;
        assertTrue(
            "segments=" + map.segments.length + ", maxSize=" + maxSize,
            map.segments.length <= Math.max(1, maxSize / 10));
        for (int i = 0; i < map.segments.length; i++) {
          totalCapacity += map.segments[i].maxSegmentWeight;
        }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 112.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/cache/LocalCacheTest.java

                    .maximumSize(maxSize));
        long totalCapacity = 0;
        assertTrue(
            "segments=" + map.segments.length + ", maxSize=" + maxSize,
            map.segments.length <= Math.max(1, maxSize / 10));
        for (int i = 0; i < map.segments.length; i++) {
          totalCapacity += map.segments[i].maxSegmentWeight;
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 14 23:06:48 GMT 2024
    - 110.7K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CallTest.kt

        assertThat(recordedRequest.body.size).isEqualTo(0)
        assertThat(recordedRequest.headers["Content-Length"]).isNull()
      }
    
      @Test
      fun headResponseContentLengthIsIgnored() {
        server.enqueue(
          MockResponse.Builder()
            .clearHeaders()
            .addHeader("Content-Length", "100")
            .build(),
        )
        server.enqueue(
          MockResponse(body = "abc"),
        )
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CacheTest.kt

        val response1 = client.newCall(request).execute()
        val in1 = response1.body.source()
        assertThat(in1.readUtf8("I love ".length.toLong())).isEqualTo("I love ")
        in1.skip("puppies but hate ".length.toLong())
        assertThat(in1.readUtf8("spiders".length.toLong())).isEqualTo("spiders")
        assertThat(in1.exhausted()).isTrue()
        in1.close()
        assertThat(cache.writeSuccessCount()).isEqualTo(1)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/cache/LocalCache.java

          try {
            if (count != 0) { // read-volatile
              long now = map.ticker.read();
              AtomicReferenceArray<ReferenceEntry<K, V>> table = this.table;
              int length = table.length();
              for (int i = 0; i < length; ++i) {
                for (ReferenceEntry<K, V> e = table.get(i); e != null; e = e.getNext()) {
                  V entryValue = getLiveValue(e, now);
                  if (entryValue == null) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 150.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/cache/LocalCache.java

          try {
            if (count != 0) { // read-volatile
              long now = map.ticker.read();
              AtomicReferenceArray<ReferenceEntry<K, V>> table = this.table;
              int length = table.length();
              for (int i = 0; i < length; ++i) {
                for (ReferenceEntry<K, V> e = table.get(i); e != null; e = e.getNext()) {
                  V entryValue = getLiveValue(e, now);
                  if (entryValue == null) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 144.7K bytes
    - Viewed (0)
  8. doc/go1.17_spec.html

    </p>
    
    <pre>
    p1 := &amp;[]int{}    // p1 points to an initialized, empty slice with value []int{} and length 0
    p2 := new([]int)  // p2 points to an uninitialized slice with value nil and length 0
    </pre>
    
    <p>
    The length of an array literal is the length specified in the literal type.
    If fewer elements than the length are provided in the literal, the missing
    elements are set to the zero value for the array element type.
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  9. cmd/object-handlers_test.go

    			if rec.Code != 200 {
    				t.Errorf("Test %d: Did not receive a 200 response: %d", i+1, rec.Code)
    			}
    			contentLength = rec.Header().Get("Content-Length")
    		}
    
    		if contentLength != fmt.Sprintf("%d", objectLength(input)) {
    			t.Errorf("Test %d: Content length is mismatching: got %s (expected: %d)", i+1, contentLength, objectLength(input))
    		}
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
  10. cmd/object-handlers.go

    		dstOpts.IndexCB = cb
    		defer s2c.Close()
    		reader = etag.Wrap(s2c, reader)
    		length = -1
    	} else {
    		delete(srcInfo.UserDefined, ReservedMetadataPrefix+"compression")
    		delete(srcInfo.UserDefined, ReservedMetadataPrefix+"actual-size")
    		reader = gr
    	}
    
    	srcInfo.Reader, err = hash.NewReader(ctx, reader, length, "", "", actualSize)
    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
Back to top