-
Notifications
You must be signed in to change notification settings - Fork 35
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
min_size_per_dim + changes for scalars inputs+outputs support #354
Conversation
… keys() items() and values() to our NDict, and tried to highlight more the faulting op in pipeline ops error
* Changed default deepdiff behavior to ignore nans in comparison, * Added keys() items() and values() to our NDict (until now it returned empty iterables for those which is incorrect) * Tried to highlight more the faulting op in pipeline ops error
…le_ids. fixed a typo in samplers.py and added a describe method to NDict
…ing pipeline ops list
…sions as it makes it easier for the user not requiring to provide it specifically per key name
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.
LGTM
… list of raw floats, solved it
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.
Looks good.
Minor comments inline.
fuse/data/ops/ops_cast.py
Outdated
@@ -37,12 +37,15 @@ def to_tensor( | |||
value: Any, | |||
dtype: Optional[torch.dtype] = None, | |||
device: Optional[torch.device] = None, | |||
ignore_None: bool = False, |
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.
ignore_none
if np.isscalar(pred[0]): | ||
pred = np.array(pred) | ||
else: | ||
pred = np.concatenate(pred) |
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.
here pred is numpy? necessarily same dims?
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.
yes, in the else it's numpy, and it not necessarily same dims (it's 1d each)
…ccumulation, and also to make pearson correlation calculation to support the case of empty inputs
by allowing min_size_per_dim to be longer than the number of dims in a tensor, it makes usage easier.
for example,
min_size_per_dim=(10_000, -1)
would then work for tensors of single dim - e.g. of size (1234, )
and also for tensors of 2(+) dims - e.g. of size (4321, 100)
this is much more nice for the user in several cases.
also - few changes for scalars inputs+outputs