Commit 9ca4291
authored
fix: bug in sbiutils.py to use one-dimensional batch (#1577)
This may be my mistake, but it seems the original:
```
len(batch_t > 1):
```
will always evaluate to True (unless batch_t has only one data point), even if there's only one batch. To use `standardizing_net()` as intended to load a pre-trained net with a dummy single-batch data, shouldn't it be:
```
len(batch_t) > 1:
```
Thanks !1 parent 3e845bd commit 9ca4291
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
| |||
0 commit comments