Use legacy Adam on macOS when tensorflow-metal is installed#28
Use legacy Adam on macOS when tensorflow-metal is installed#28Copilot wants to merge 13 commits into
Conversation
Agent-Logs-Url: https://github.com/DocGarbanzo/donkeycar/sessions/2554f4db-1330-4137-b772-07f64d9a3372 Co-authored-by: DocGarbanzo <47540921+DocGarbanzo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/DocGarbanzo/donkeycar/sessions/2554f4db-1330-4137-b772-07f64d9a3372 Co-authored-by: DocGarbanzo <47540921+DocGarbanzo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/DocGarbanzo/donkeycar/sessions/2554f4db-1330-4137-b772-07f64d9a3372 Co-authored-by: DocGarbanzo <47540921+DocGarbanzo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/DocGarbanzo/donkeycar/sessions/2554f4db-1330-4137-b772-07f64d9a3372 Co-authored-by: DocGarbanzo <47540921+DocGarbanzo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/DocGarbanzo/donkeycar/sessions/2554f4db-1330-4137-b772-07f64d9a3372 Co-authored-by: DocGarbanzo <47540921+DocGarbanzo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/DocGarbanzo/donkeycar/sessions/2554f4db-1330-4137-b772-07f64d9a3372 Co-authored-by: DocGarbanzo <47540921+DocGarbanzo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/DocGarbanzo/donkeycar/sessions/2554f4db-1330-4137-b772-07f64d9a3372 Co-authored-by: DocGarbanzo <47540921+DocGarbanzo@users.noreply.github.com>
DocGarbanzo
left a comment
There was a problem hiding this comment.
The tests are bad. We want a test that shows proper convergence on a tf model using adam. Do we not have a small dataset checked in? If not, then create a standalone model similar to the linear model or even just a feed forward nn and prove the convergence there.
Agent-Logs-Url: https://github.com/DocGarbanzo/donkeycar/sessions/93138dfa-e218-44ea-90b5-f7d4f973fc1e Co-authored-by: DocGarbanzo <47540921+DocGarbanzo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/DocGarbanzo/donkeycar/sessions/93138dfa-e218-44ea-90b5-f7d4f973fc1e Co-authored-by: DocGarbanzo <47540921+DocGarbanzo@users.noreply.github.com>
Updated tests to use a real standalone TensorFlow model and assert convergence with Adam-based training, including the Metal+legacy Adam path when available ( |
Agent-Logs-Url: https://github.com/DocGarbanzo/donkeycar/sessions/258cc849-6d4a-45c9-af21-98ad76e0d075 Co-authored-by: DocGarbanzo <47540921+DocGarbanzo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/DocGarbanzo/donkeycar/sessions/3630ed81-15c9-4069-962d-2e4fd408c04a Co-authored-by: DocGarbanzo <47540921+DocGarbanzo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/DocGarbanzo/donkeycar/sessions/3630ed81-15c9-4069-962d-2e4fd408c04a Co-authored-by: DocGarbanzo <47540921+DocGarbanzo@users.noreply.github.com>
…Keras 3 stub Agent-Logs-Url: https://github.com/DocGarbanzo/donkeycar/sessions/897c325a-e9ac-4052-8e61-9d5b897c4b87 Co-authored-by: DocGarbanzo <47540921+DocGarbanzo@users.noreply.github.com>
_legacy_adam_class()returns non-None in Keras 3 because attribute access succeeds, but instantiation raisesImportError_legacy_adam_class()to probe actual instantiation so it returnsNonein Keras 3 environments (no Metal)