Skip to content

Commit

Permalink
Update pf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
yiwang12 authored Oct 9, 2024
1 parent e167e95 commit f5cb86b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mNSF/NSF/pf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
dtp = "float32"
rng = np.random.default_rng()

@tf.custom_gradient
def checkpoint_grad(x):
y = tf.identity(x)
def grad(dy):
Expand Down

0 comments on commit f5cb86b

Please sign in to comment.