Skip to content

Commit 7a8fab2

Browse files
authored
update tree_map API call (GoogleCloudPlatform#838)
1 parent a7d6f1d commit 7a8fab2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dags/multipod/legacy_tests/gpt1-like.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def calculate_tflops(f, *args, **kwargs):
153153

154154
def training_loop(in_act, in_layers):
155155
_, grad_layers = multiply_layers_and_grad(in_act, in_layers)
156-
out_layers = jax.tree_map(
156+
out_layers = jax.tree_util.tree_map(
157157
lambda param, grad: param - 1e-4 * grad, in_layers, grad_layers[0]
158158
)
159159
return out_layers

0 commit comments

Comments
 (0)