9a4da896d66f491c36311575291d89b2d1866a7f,luminoth/utils/vars.py,,get_activation_function,#Any#,70
Before Change
if activation_function == "relu":
return tf.nn.relu
elif activation_function == "relu6":
return tf.nn.relu6
elif activation_function == "sigmoid":
return tf.sigmoid
elif activation_function == "tanh":
return tf.tanh
else:
raise ValueError(
After Change
if not activation_function:
return lambda a: a
try:
return getattr(tf.nn, activation_function)
except AttributeError:
raise ValueError(
"Invalid activation function "{}"".format(activation_function))
def get_saver(modules, var_collections=(tf.GraphKeys.GLOBAL_VARIABLES,),
ignore_scope=None, **kwargs):
Get tf.train.Saver instance for module.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: tryolabs/luminoth
Commit Name: 9a4da896d66f491c36311575291d89b2d1866a7f
Time: 2017-11-17
Author: javirey@gmail.com
File Name: luminoth/utils/vars.py
Class Name:
Method Name: get_activation_function
Project Name: streamlit/streamlit
Commit Name: cf2e5c02c448c6f25136a4cd1b89e7f0ba1a3d37
Time: 2018-07-06
Author: adrien.g.treuille@gmail.com
File Name: lib/streamlit/config.py
Class Name:
Method Name: get_s3_option
Project Name: streamlit/streamlit
Commit Name: c786913462decebc4157ac3e8d2ec08303021adc
Time: 2018-07-02
Author: adrien.g.treuille@gmail.com
File Name: lib/streamlit/config.py
Class Name:
Method Name: get_s3_option