Check tied parameters (#1529)
* Check that parameters are tied correctly
* Fix style
* Fix condition
* Fix failing test
* Fix check_tied_parameters function
* Fix condition
* Fix arg
* Apply suggestions from code review
Fix log
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* Fix tests and comments
Fix comments and tests
Fix description
* Remove dep
---------
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>