Skip to content

Commit

Permalink
Update edward2 to Python 3.11 compatibility.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 569298509
  • Loading branch information
yilei authored and edward-bot committed Sep 28, 2023
1 parent d23eddd commit 3a9b7ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edward2/numpy/program_transformations.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ def _get_function_inputs(f, *args, **kwargs):
New original args, args of f, kwargs of f.
"""
if hasattr(f, "_func"): # functions returned by tf.make_template
argspec = inspect.getargspec(f._func) # pylint: disable=protected-access
argspec = inspect.getfullargspec(f._func) # pylint: disable=protected-access
else:
argspec = inspect.getargspec(f)
argspec = inspect.getfullargspec(f)

fkwargs = {}
for k, v in kwargs.items():
Expand Down

0 comments on commit 3a9b7ef

Please sign in to comment.