Skip to content

Commit

Permalink
Anon
Browse files Browse the repository at this point in the history
  • Loading branch information
yardenas committed Oct 2, 2024
1 parent 13f6c7e commit 2f13ad2
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Yarden As
Copyright (c) 2024 Anon

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "act-safe"
version = "0.1.0"
description = ""
authors = ["Yarden As"]
authors = ["Anon"]
readme = "README.md"

[tool.poetry.dependencies]
Expand Down
2 changes: 1 addition & 1 deletion safe_opax/common/double_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def double_buffer(ds: Iterable[TrajectoryData]) -> Iterator[TrajectoryData]:
Batches of sharded device arrays.
"""
batch = None
# TODO (yarden): should be sharded better
# TODO (anon): should be sharded better
# see equinox's docs for DDP
devices = jax.local_devices()[0]
for next_batch in ds:
Expand Down
2 changes: 1 addition & 1 deletion safe_opax/common/learner.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(
def grad_step(
self, model: PyTree, grads: PyTree, state: optax.OptState
) -> tuple[PyTree, optax.OptState]:
# TODO (yarden): should retain the policy and use params dtype
# TODO (anon): should retain the policy and use params dtype
grads = apply_dtype(grads, jnp.float32)
updates, new_opt_state = self.optimizer.update(grads, state)
all_ok = all_finite(updates)
Expand Down

0 comments on commit 2f13ad2

Please sign in to comment.