- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 17 for getRand (0.05 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
tests/lru_test.go
func BenchmarkLRU_Freq_NoExpire(b *testing.B) { l := lru.NewLRU[int64, int64](8192, nil, 0) trace := make([]int64, b.N*2) for i := 0; i < b.N*2; i++ { if i%2 == 0 { trace[i] = getRand(b) % 16384 } else { trace[i] = getRand(b) % 32768 } } b.ResetTimer() for i := 0; i < b.N; i++ { l.Add(trace[i], trace[i]) } var hit, miss int for i := 0; i < b.N; i++ {
Created: Sun Apr 05 09:35:12 GMT 2026 - Last Modified: Mon Sep 08 09:19:22 GMT 2025 - 10.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java
when(mockAndxCommand.getCommand()).thenReturn(0x42); testBlock = new TestAndXServerMessageBlock(mockConfig, (byte) 0x25, mockAndxCommand); assertEquals(mockAndxCommand, testBlock.getAndx()); assertEquals(mockAndxCommand, testBlock.getNext()); assertEquals(mockAndxCommand, testBlock.getNextResponse()); } @Test @DisplayName("Test constructor without andx command")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 19.4K bytes - Click Count (0) -
tensorflow/c/eager/immediate_execution_operation.h
virtual void SetStepId(int64_t step_id) = 0; // For LLVM style RTTI. static bool classof(const AbstractOperation* ptr) { return ptr->getKind() == kEager || ptr->getKind() == kTfrt; } protected: explicit ImmediateExecutionOperation(AbstractOperationKind kind) : AbstractOperation(kind) {} ~ImmediateExecutionOperation() override {} };
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 3.6K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/SisuDiBridgeModule.java
for (var bean : locator.get().locate(toGuiceKey(key))) { if (isPlexusBean(bean)) { list.add(new BindingToBeanEntry<>(key).toBeanEntry(bean).prioritize(bean.getRank())); } } if (!list.isEmpty()) { list.sort(getPriorityComparator()); //noinspection unchecked
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Sep 17 16:01:38 GMT 2025 - 11.4K bytes - Click Count (0) -
tensorflow/c/eager/abstract_tensor_handle.h
// The default debug string includes a shape, dtype and FullType. // Implementations are free to override it with something more informative. virtual std::string DebugString() const; AbstractTensorHandleKind getKind() const { return kind_; } private: const AbstractTensorHandleKind kind_; }; namespace internal { struct AbstractTensorHandleDeleter { void operator()(AbstractTensorHandle* p) const {
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 3K bytes - Click Count (0) -
tensorflow/c/eager/immediate_execution_tensor_handle.h
virtual absl::Status SummarizeValue(std::string& summary) const; // For LLVM style RTTI. static bool classof(const AbstractTensorHandle* ptr) { return ptr->getKind() == kEager || ptr->getKind() == kTfrt; } protected: explicit ImmediateExecutionTensorHandle(AbstractTensorHandleKind kind) : AbstractTensorHandle(kind) {} ~ImmediateExecutionTensorHandle() override {} };
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 4.3K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/transfer/Slf4jMavenTransferListener.java
Duration duration = Duration.between(Instant.ofEpochMilli(resource.getTransferStartTime()), MonotonicClock.now()); if ((duration.getSeconds() | duration.getNano()) > 0) { // duration.isPositive() long bytesPerSecond = Math.round(contentLength / (double) duration.toSeconds()); message.append(" at "); format.format(message, bytesPerSecond);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Dec 12 11:02:17 GMT 2024 - 4K bytes - Click Count (0) -
tensorflow/c/eager/immediate_execution_context.h
// to the caller. virtual std::unique_ptr<RunMetadata> ExportRunMetadata() = 0; // For LLVM style RTTI. static bool classof(const AbstractContext* ptr) { return ptr->getKind() == kEager || ptr->getKind() == kTfrt; } //===--------------------------------------------------------------------===// // Experimental Custom Device.
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 12.3K bytes - Click Count (0) -
tensorflow/c/eager/graph_function.h
override { return func_record_.GetNewRef(); } // For LLVM style RTTI. static bool classof(const AbstractFunction* ptr) { return ptr->getKind() == kGraph; } private: core::RefCountPtr<FunctionRecord> func_record_; }; } // namespace graph } // namespace tracing } // namespace tensorflowCreated: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 1.8K bytes - Click Count (0) -
tensorflow/c/eager/abstract_function.h
protected: enum AbstractFunctionKind { kGraph, kMlir }; explicit AbstractFunction(AbstractFunctionKind kind) : kind_(kind) {} public: // Returns which subclass is this instance of. AbstractFunctionKind getKind() const { return kind_; } // Returns the AbstractFunction as a FunctionDef. virtual absl::Status GetFunctionDef(const FunctionDef**) = 0; // Returns a shared reference to the wrapped function.Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 1.9K bytes - Click Count (0)