MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ModuleHandle

Class ModuleHandle

tensorflow/stream_executor/stream_executor_internal.h:58–70  ·  view source on GitHub ↗

An opaque handle to a loaded module. An instance of this is returned from StreamExecutor::GetModule.

Source from the content-addressed store, hash-verified

56//
57// An instance of this is returned from StreamExecutor::GetModule.
58class ModuleHandle {
59 public:
60 /*implicit*/ ModuleHandle(void *id = nullptr) : id_(id) {}
61
62 // A ModuleHandle with id() == nullptr is an invalid module handle, akin to a
63 // null pointer.
64 void *id() const { return id_; }
65
66 explicit operator bool() const { return id() != nullptr; }
67
68 private:
69 void *id_;
70};
71
72namespace internal {
73

Callers 4

ScopedModuleHandleMethod · 0.85
ScopedModuleHandleClass · 0.85
LoadModuleMethod · 0.85
LoadModuleMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected