Add flax and friends for training neural networks
This updates our formatter, which changed what it expects very slightly.
Update all the pieces of code to match
optax is for the actual optimizers, jax is the underlying accelerated
linear algebra library, tensorflow is for loading datasets and exporting
models.
Change-Id: Ic4c3b425cda74267e1d0ad1615c42452cbefab8a
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/tools/foxglove/creation_wrapper_npm.py b/tools/foxglove/creation_wrapper_npm.py
index 6483536..34ca6ab 100644
--- a/tools/foxglove/creation_wrapper_npm.py
+++ b/tools/foxglove/creation_wrapper_npm.py
@@ -33,9 +33,10 @@
package.rsplit("@", maxsplit=1) for package in packages)
package_json_file = Path.cwd() / "package.json"
package_json = json.loads(package_json_file.read_text())
- package_json.setdefault("dependencies", {}).update(
- {package: version
- for package, version in package_version_pairs})
+ package_json.setdefault("dependencies", {}).update({
+ package: version
+ for package, version in package_version_pairs
+ })
package_json_file.write_text(
json.dumps(package_json, sort_keys=True, indent=4))