Skip to content

Add cuda.core.utils.ProgramCacheResource #179

Description

@leofang

This is the ABC class that all concrete cache classes should inherit/overwrite:

classProgramCacheResource(abc.ABC):
@abc.abstractmethoddef__getitem__(self, key: Any) ->Module:
"""Retrieve the cached Module instance. key should be a hashable object. """
...
@abc.abstractmethoddef__setitem__(self, key: Any, val: Module):
"""Cache a Module instance. key should be a hashable object. """
...

Metadata

Metadata

Assignees

Labels

P0High priority - Must do!cuda.coreEverything related to the cuda.core modulefeatureNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions