-
Notifications
You must be signed in to change notification settings - Fork 4
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
dev(feat): add constraint to treetensor #16
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## main #16 +/- ##
==========================================
+ Coverage 97.19% 97.35% +0.15%
==========================================
Files 33 37 +4
Lines 1607 1665 +58
==========================================
+ Hits 1562 1621 +59
+ Misses 45 44 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
from .shape import __all__ as _shape_all | ||
|
||
__all__ = [ | ||
*_shape_all |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add comments, such as some functions examples
if constraint: | ||
return constraint.prefix | ||
else: | ||
return None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe we should raise RuntimeError
here
assert not c1 > shape_prefix(2, 3, 3) | ||
assert not c1 < shape_prefix(2, 3, 3) | ||
|
||
assert not c1 >= np.ndarray |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why add this comparison, maybe we should add some explanation comments
No description provided.