Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing callbacks #57

Closed
wants to merge 19 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Format.
  • Loading branch information
khatchad committed Nov 30, 2023
commit 6b0af76d886e43d6c9dba1c99fd7ea185c734792
4 changes: 3 additions & 1 deletion com.ibm.wala.cast.python.test/data/tf2_test_callbacks2.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
strategy = tf.distribute.MirroredStrategy(["GPU:0", "GPU:1"])
tensor_input = tf.constant(3.0)


@tf.function
def replica_fn(input):
return input*2.0
return input * 2.0


result = strategy.run(replica_fn, args=(tensor_input,))