Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
grad_complex.py: np.complex -> complex (anyoptimization#407)
```output E AttributeError: module 'numpy' has no attribute 'complex'. E `np.complex` was a deprecated alias for the builtin `complex`. To avoid this error in existing code, use `complex` by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use `np.complex128` here. E The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: E https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'complex_'? ```
- Loading branch information