Commit 5aafe24d authored by Yaroslav Bulatov's avatar Yaroslav Bulatov Committed by drpngx
Browse files

Remove overly restrictive check on gradient types. (#6868)

* Remove overly restrictive check on gradient types.

* Add a check that backprops are numeric.

* Remove additional place with extraneous check.

* Add is_real property that checks if type is real.

* Add complex/real-valued gradient checks

* change dtype check fails to raise TypeError

* Fix pylint white-space
parent 99fe61a8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment