Last active
August 6, 2020 13:49
-
-
Save riga/522d2d08dab617a46444213fe202d919 to your computer and use it in GitHub Desktop.
Example gist to showcase the cms_gist_runner.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
""" | |
Example gist to be used with the cms_gist_runner. Execute via | |
> ~mrieger/public/bin/cms_gist_runner 522d2d08dab617a46444213fe202d919 -v CMSSW_11_1_2 -t | |
""" | |
import tensorflow as tf | |
@tf.function | |
def times_two(x): | |
return x * 2. | |
print(times_two(tf.constant([2., 4.]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment