Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for allocated (0.15 sec)

  1. src/main/java/org/codelibs/core/io/CopyUtil.java

         */
        protected static int copyInternal(final FileInputStream in, final OutputStream out) {
            try {
                final FileChannel channel = in.getChannel();
                final ByteBuffer buffer = ByteBuffer.allocate(DEFAULT_BUF_SIZE);
                final byte[] buf = buffer.array();
                int len;
                int amount = 0;
                while ((len = ChannelUtil.read(channel, buffer, amount)) != -1) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 52.4K bytes
    - Viewed (0)
  2. tensorflow/c/c_api_test.cc

      TF_DeleteStatus(s);
    }
    
    void Deallocator(void* data, size_t, void* arg) {
      tensorflow::cpu_allocator()->DeallocateRaw(data);
      *reinterpret_cast<bool*>(arg) = true;
    }
    
    TEST(CAPI, Tensor) {
      const int num_bytes = 6 * sizeof(float);
      float* values =
          reinterpret_cast<float*>(tensorflow::cpu_allocator()->AllocateRaw(
              TF_TensorDefaultAlignment(), num_bytes));
      int64_t dims[] = {2, 3};
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  3. guava-tests/test/com/google/common/collect/SetsTest.java

        out[0] = b;
        System.arraycopy(array, 0, out, 1, array.length);
        return out;
      }
    
      @GwtIncompatible // java.nio.ByteBuffer
      private static byte[] toByteArray(int h) {
        return ByteBuffer.allocate(4).putInt(h).array();
      }
    
      public void testNewEnumSet_empty() {
        EnumSet<SomeEnum> copy = newEnumSet(Collections.<SomeEnum>emptySet(), SomeEnum.class);
        assertEquals(EnumSet.noneOf(SomeEnum.class), copy);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

              // there's a way around creating the separate sortedKeys array, and if we're allocating
              // one array of size n, we might as well allocate two -- to say nothing of the allocation
              // done in Arrays.sort.
              for (int i = 0; i < size; i++) {
                // We're careful to put only K instances in.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

          if (throwable != null) {
            return new Failure(throwable);
          }
        }
        boolean wasCancelled = future.isCancelled();
        // Don't allocate a CancellationException if it's not necessary
        if (!GENERATE_CANCELLATION_CAUSES & wasCancelled) {
          /*
           * requireNonNull is safe because we've initialized CAUSELESS_CANCELLED if
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  6. src/archive/zip/reader_test.go

    		t.Errorf("Error opening file: %v", err)
    	}
    }
    
    func TestCVE202133196(t *testing.T) {
    	// Archive that indicates it has 1 << 128 -1 files,
    	// this would previously cause a panic due to attempting
    	// to allocate a slice with 1 << 128 -1 elements.
    	data := []byte{
    		0x50, 0x4b, 0x03, 0x04, 0x14, 0x00, 0x08, 0x08,
    		0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    		0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  7. cmd/xl-storage-format-v2.go

    				fi.Parts[i].Index = j.PartIndices[i]
    			}
    		}
    	}
    
    	// fi.Erasure.Checksums - is left empty since we do not have any
    	// whole checksums for many years now, no need to allocate.
    
    	fi.Metadata = make(map[string]string, len(j.MetaUser)+len(j.MetaSys))
    	for k, v := range j.MetaUser {
    		// https://github.com/google/security-research/security/advisories/GHSA-76wf-9vgp-pj7w
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 05:07:37 GMT 2024
    - 63.6K bytes
    - Viewed (1)
  8. docs/changelogs/changelog_3x.md

        suffix database.
     *  Fix: Use relative resource path when loading the public suffix database.
        Loading the resource using a path relative to the class prevents conflicts
        when the OkHttp classes are relocated (shaded) by allowing multiple private
        copies of the database.
     *  Fix: Accept cookies for URLs that have an IPv6 address for a host.
     *  Fix: Don't log the protocol (HTTP/1.1, h2) in HttpLoggingInterceptor if the
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  9. tensorflow/BUILD

                    "//tensorflow/lite/kernels/shim:tf_kernel_shim",
                    "@local_xla//xla/stream_executor:stream_executor_impl",
                    "@local_tsl//tsl/framework:bfc_allocator",
                    "@local_tsl//tsl/framework:metrics",
                ] + tf_additional_binary_deps() +
                # TODO(b/259305727): Remove this select and include captured_function in macos builds.
                select({
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 09 18:15:11 GMT 2024
    - 53.4K bytes
    - Viewed (8)
  10. CHANGELOG/CHANGELOG-1.3.md

    * Updaing QoS policy to be at the pod level ([#14943](https://github.com/kubernetes/kubernetes/pull/14943), [@vishh](https://github.com/vishh))
    * add CIDR allocator for NodeController ([#19242](https://github.com/kubernetes/kubernetes/pull/19242), [@mqliang](https://github.com/mqliang))
    Plain Text
    - Registered: Fri May 03 09:05:14 GMT 2024
    - Last Modified: Thu Dec 24 02:28:26 GMT 2020
    - 84K bytes
    - Viewed (0)
Back to top