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
Loading
Please sign in to comment