Skip to content

Add cuda.core.utils.ProgramCacheResource #179

@leofang

Description

@leofang

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

No one assigned

    Labels

    P1Medium priority - Should docuda.coreEverything related to the cuda.core modulefeatureNew feature or requesttriageNeeds the team's attention

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions