- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 26 for testbuffer (0.14 sec)
-
platforms/core-runtime/io/src/test/groovy/org/gradle/internal/io/StreamByteBufferTest.groovy
expect: byteBuffer.readAsByteArray() == testbuffer } def "reads source InputStream fully"() { given: def byteBuffer = new StreamByteBuffer() def byteArrayInputStream = new ByteArrayInputStream(testbuffer) when: byteBuffer.readFully(byteArrayInputStream) then: byteBuffer.totalBytesUnread() == testbuffer.length
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 12 13:06:08 UTC 2024 - 13.3K bytes - Viewed (0) -
tensorflow/compiler/jit/pjrt_device_context.cc
tensorflow::AsyncValueTensor::FromTensor(device_tensor); // The result tensor should be newly allocated, which does not point to a // valid buffer yet. CHECK(!result_tensor->GetBuffer()); // Crash OK result_tensor->SetBuffer(std::move(*buffer_or)); } pjrt_buffer->GetReadyFuture().OnReady(std::move(done)); } void PjRtDeviceContext::CopyTensorInSameDevice(const Tensor* input_tensor,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 08:49:31 UTC 2024 - 11.6K bytes - Viewed (0) -
tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util.cc
tensorflow::AsyncValueTensor::FromTensor(tensor); if (av_tensor == nullptr || av_tensor->GetBuffer() == nullptr) { return absl::InternalError("Input tensor does not have PjRtBuffer."); } auto* c_api_buffer = dynamic_cast<xla::PjRtCApiBuffer*>(av_tensor->GetBuffer().get()); if (c_api_buffer == nullptr) { return absl::InternalError(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 05:48:24 UTC 2024 - 3.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/TopKSelector.java
T[] castBuffer = (T[]) buffer; Arrays.sort(castBuffer, 0, bufferSize, comparator); if (bufferSize > k) { Arrays.fill(buffer, k, buffer.length, null); bufferSize = k; threshold = buffer[k - 1]; } // Up to bufferSize, all elements of buffer are real Ts (not null unless T includes null) T[] topK = Arrays.copyOf(castBuffer, bufferSize);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 11.2K bytes - Viewed (0) -
guava/src/com/google/common/io/FileBackedOutputStream.java
@GuardedBy("this") @CheckForNull private File file; /** ByteArrayOutputStream that exposes its internals. */ private static class MemoryOutput extends ByteArrayOutputStream { byte[] getBuffer() { return buf; } int getCount() { return count; } } /** Returns the file holding the data (possibly null). */ @VisibleForTesting @CheckForNull
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 17:40:56 UTC 2024 - 8.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/TopKSelector.java
T[] castBuffer = (T[]) buffer; Arrays.sort(castBuffer, 0, bufferSize, comparator); if (bufferSize > k) { Arrays.fill(buffer, k, buffer.length, null); bufferSize = k; threshold = buffer[k - 1]; } // Up to bufferSize, all elements of buffer are real Ts (not null unless T includes null) T[] topK = Arrays.copyOf(castBuffer, bufferSize);
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 11.2K bytes - Viewed (0) -
android/guava/src/com/google/common/io/FileBackedOutputStream.java
@GuardedBy("this") @CheckForNull private File file; /** ByteArrayOutputStream that exposes its internals. */ private static class MemoryOutput extends ByteArrayOutputStream { byte[] getBuffer() { return buf; } int getCount() { return count; } } /** Returns the file holding the data (possibly null). */ @VisibleForTesting @CheckForNull
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 17:40:56 UTC 2024 - 8.2K bytes - Viewed (0) -
tensorflow/c/experimental/next_pluggable_device/tensor_pjrt_buffer_util_test.cc
nullptr, pjrt_client->addressable_devices()[0])); tensorflow::AsyncValueTensor* av_tensor = tensorflow::AsyncValueTensor::FromTensor(&tensor); av_tensor->SetBuffer(std::move(buffer)); EXPECT_THAT( GetPjRtCBufferFromTensor(&tensor), StatusIs( error::INTERNAL, HasSubstr(absl::StrCat(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 01 16:29:40 UTC 2024 - 7.2K bytes - Viewed (0) -
platforms/core-runtime/files/src/main/java/org/gradle/internal/file/BufferProvider.java
import org.gradle.internal.service.scopes.ServiceScope; /** * Providers a byte buffer to be used in processing streams. */ @ServiceScope(Scope.Global.class) public interface BufferProvider { byte[] getBuffer();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Apr 17 00:47:05 UTC 2024 - 921 bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/tftext_utils.cc
reduction_type.getValue().size()); fbb.String("reduction_type", reduction_type_str); fbb.EndMap(start_map); fbb.Finish(); custom_option_buffer.assign(fbb.GetBuffer().begin(), fbb.GetBuffer().end()); return success(); } LogicalResult ConvertNgrams(func::FuncOp func, llvm::StringRef api, FuncAttr attr) { func.eraseBody(); func.addEntryBlock();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.4K bytes - Viewed (0)