nshutils 0.6.0__py3-none-any.whl → 0.6.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
nshutils/snoop.py CHANGED
@@ -33,7 +33,7 @@ try:
33
33
  FLOATING_POINTS = set()
34
34
  for i in ["float", "double", "half", "complex128", "complex32", "complex64"]:
35
35
  # older version of PyTorch do not have complex dtypes
36
- if torch is not None and not hasattr(torch, i):
36
+ if torch is None or not hasattr(torch, i):
37
37
  continue
38
38
  FLOATING_POINTS.add(getattr(torch, i))
39
39
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: nshutils
3
- Version: 0.6.0
3
+ Version: 0.6.1
4
4
  Summary:
5
5
  Author: Nima Shoghi
6
6
  Author-email: nimashoghi@gmail.com
@@ -4,8 +4,8 @@ nshutils/actsave/_loader.py,sha256=fAhD32DrJa4onkYfcwc21YIeGEYzOSXCK_HVo9SZLgQ,4
4
4
  nshutils/actsave/_saver.py,sha256=xpvnMi4dI8dFwu0tIpJVIp1S4J6FJT5fVYAUTWgvB7A,9885
5
5
  nshutils/collections.py,sha256=EE_qLd-LrsX5lsyk9GSKh03Q8bhn9CHB3jiEeNj4uF4,5197
6
6
  nshutils/logging.py,sha256=tL-6XvdvJEEr7bje9DSmUBpm6pnJS9XG_1fuw3U1eME,2573
7
- nshutils/snoop.py,sha256=sQW0Ap4AypcPucfhXW_AQCJqXXwbqr8WQJvrFjU_J9g,7361
7
+ nshutils/snoop.py,sha256=2RNlOcBFnCUyOsfGlbBb8FwSGq03hxfypMfqMA0No-A,7356
8
8
  nshutils/typecheck.py,sha256=_KtfinRy9A0Dgq78kN5MGGrefvb6jn2tGY6svdLEBAs,4915
9
- nshutils-0.6.0.dist-info/METADATA,sha256=TjgSo7kGqtNO4k29mmofhIwGvzEsPK0kltVgHQe_dFg,571
10
- nshutils-0.6.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
11
- nshutils-0.6.0.dist-info/RECORD,,
9
+ nshutils-0.6.1.dist-info/METADATA,sha256=N3aKMAQ04xiBd9NvEYlV848JIG5zWjIZgZC20F7IQm0,571
10
+ nshutils-0.6.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
11
+ nshutils-0.6.1.dist-info/RECORD,,