Skip to content

Commit 2f13ad2

Browse files
committed
Anon
1 parent 13f6c7e commit 2f13ad2

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Yarden As
3+
Copyright (c) 2024 Anon
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "act-safe"
33
version = "0.1.0"
44
description = ""
5-
authors = ["Yarden As"]
5+
authors = ["Anon"]
66
readme = "README.md"
77

88
[tool.poetry.dependencies]

safe_opax/common/double_buffer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def double_buffer(ds: Iterable[TrajectoryData]) -> Iterator[TrajectoryData]:
2727
Batches of sharded device arrays.
2828
"""
2929
batch = None
30-
# TODO (yarden): should be sharded better
30+
# TODO (anon): should be sharded better
3131
# see equinox's docs for DDP
3232
devices = jax.local_devices()[0]
3333
for next_batch in ds:

safe_opax/common/learner.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def __init__(
2727
def grad_step(
2828
self, model: PyTree, grads: PyTree, state: optax.OptState
2929
) -> tuple[PyTree, optax.OptState]:
30-
# TODO (yarden): should retain the policy and use params dtype
30+
# TODO (anon): should retain the policy and use params dtype
3131
grads = apply_dtype(grads, jnp.float32)
3232
updates, new_opt_state = self.optimizer.update(grads, state)
3333
all_ok = all_finite(updates)

0 commit comments

Comments
 (0)