Skip to content
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

Add zeros, ones, randn to funsor.compat.ops #270

Merged
merged 2 commits into from
Oct 11, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Empty file added funsor/compat/__init__.py
Empty file.
3 changes: 3 additions & 0 deletions funsor/compat/ops.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
from torch import ones, randn, tensor, zeros
fritzo marked this conversation as resolved.
Show resolved Hide resolved

from .ops import * # noqa F401
2 changes: 0 additions & 2 deletions funsor/ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import numpy as np
from multipledispatch import Dispatcher
from torch import tensor

_builtin_abs = abs
_builtin_max = max
Expand Down Expand Up @@ -345,7 +344,6 @@ def reciprocal(x):
'sigmoid',
'sqrt',
'sub',
'tensor',
'truediv',
'xor',
]