- 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) -
tensorflow/c/eager/c_api_unified_experimental_internal.h
: AbstractTensorHandle(kind) {} public: // For LLVM style RTTI. static bool classof(const AbstractTensorHandle* ptr) { return ptr->getKind() == kGraph || ptr->getKind() == kMlir; } }; // An abstract operation describes an operation by its type, name, and // attributes. It can be "executed" by the context with some input tensors.
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 5.2K 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) -
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) -
tensorflow/c/eager/abstract_context.h
enum AbstractContextKind { kGraph, kMlir, kEager, kTfrt, kTape, kOpHandler }; explicit AbstractContext(AbstractContextKind kind) : kind_(kind) {} virtual ~AbstractContext() {} public: AbstractContextKind getKind() const { return kind_; } // Release any underlying resources, including the interface object. // // WARNING: The destructor of this class is marked as protected to disallowCreated: 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/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) -
tensorflow/c/eager/abstract_op_attrs.h
protected: enum AbstractOpAttrsKind { kEager, kTfrt }; explicit AbstractOpAttrs(AbstractOpAttrsKind kind) : kind_(kind) {} public: // Returns which subclass is this instance of. AbstractOpAttrsKind getKind() const { return kind_; } virtual ~AbstractOpAttrs() = default; // Returns the AbstractFunction as a FunctionDef. virtual void GetNameAttrList( tensorflow::NameAttrList* name_and_attrs) const = 0;Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Oct 12 05:11:17 GMT 2024 - 2K bytes - Click Count (0)