Skip to content

Commit

Permalink
Removed call to function_lib's register method
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 481941823
  • Loading branch information
Umer Javed authored and copybara-github committed Oct 18, 2022
1 parent 7298417 commit 6b90fdb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sonnet/src/recurrent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,9 @@ def wrapper(*args, **kwargs):
"api_implements": unique_api_name,
"api_preferred_device": device
})
function_lib.register(functions[device], *args, **kwargs)
concrete_func = functions[device].get_concrete_function(*args, **kwargs)
concrete_func.add_to_graph()
concrete_func.add_gradient_functions_to_graph()
return functions[default](*args, **kwargs)

return wrapper
Expand Down

0 comments on commit 6b90fdb

Please sign in to comment.