Skip to content

Commit

Permalink
Add zeros, ones, randn to funsor.compat.ops (#270)
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzo authored and neerajprad committed Oct 11, 2019
1 parent f115484 commit 7810696
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
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 # noqa F401

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',
]

0 comments on commit 7810696

Please sign in to comment.