+
Skip to content

Adding Unit and HasUnitType. Reducing bounds for Dtype #313

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

Merged
merged 3 commits into from
Dec 16, 2022
Merged

Conversation

coreylowman
Copy link
Owner

Needed for #306 - Right now Dtype requires Add/Sub/etc, but you can't do that for bool.

Therefore this is adding an intermediate trait Unit which doesn't have arithmetic traits implemented. Tensors can be created with Unit type, but you can't track gradients with Unit

@coreylowman coreylowman merged commit 0becc0f into main Dec 16, 2022
@coreylowman coreylowman deleted the add-unit branch December 16, 2022 16:37
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

Successfully merging this pull request may close these issues.

1 participant
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载