-
Notifications
You must be signed in to change notification settings - Fork 183
Open
Labels
P1Medium priority - Should doMedium priority - Should docuda.coreEverything related to the cuda.core moduleEverything related to the cuda.core modulefeatureNew feature or requestNew feature or requesttriageNeeds the team's attentionNeeds the team's attention
Milestone
Description
This is the ABC class that all concrete cache classes should inherit/overwrite:
class ProgramCacheResource(abc.ABC):
@abc.abstractmethod
def __getitem__(self, key: Any) -> Module:
"""Retrieve the cached Module instance. key should be a hashable
object.
"""
...
@abc.abstractmethod
def __setitem__(self, key: Any, val: Module):
"""Cache a Module instance. key should be a hashable object.
"""
...
Metadata
Metadata
Assignees
Labels
P1Medium priority - Should doMedium priority - Should docuda.coreEverything related to the cuda.core moduleEverything related to the cuda.core modulefeatureNew feature or requestNew feature or requesttriageNeeds the team's attentionNeeds the team's attention