Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ verify_ssl = true
name = "pypi"

[packages]
torch = "==0.4.1"
torch = ">=0.4.1"

[dev-packages]
tqdm = "==4.23.4"
Expand Down
2 changes: 1 addition & 1 deletion Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion bnn/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@

from functools import partial
from torch.nn import Parameter
from collections import Iterable, OrderedDict
from collections import OrderedDict
from collections.abc import Iterable


class BDropout(torch.nn.Dropout):
Expand Down
124 changes: 48 additions & 76 deletions examples/sin_x.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def read(fname):

BASE_URL = "https://github.com/anassinator/bnn"
INSTALL_REQUIRES = [
"torch==0.4.1",
"torch>=0.4.1",
]

# Parse version information.
Expand Down