Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make platform-specific encapsulation of constants #6

Open
gth828r opened this issue Dec 11, 2020 · 0 comments
Open

Make platform-specific encapsulation of constants #6

gth828r opened this issue Dec 11, 2020 · 0 comments
Assignees

Comments

@gth828r
Copy link
Owner

gth828r commented Dec 11, 2020

To improve portability, we should introduce a mechanism to inspect the underlying hardware (e.g. GPU, TPU, CPU-only) and set values based on that. We can create a factory pattern to return a set of pre-defined constants for hardware we recognize, as well as a default to use for non-CPU hardware which we do not recognize.

@gth828r gth828r self-assigned this Dec 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant