c44e9f868ca75e3842b869907ceb9c7babd1f3b6,model_tf2.py,,,#,24

Before Change



import tensorflow as tf
from tensorflow.keras.mixed_precision import experimental as mixed_precision
policy = mixed_precision.Policy("mixed_float16")
mixed_precision.set_policy(policy)
from tensorflow.keras.models import Model
from tensorflow.keras import layers
from tensorflow.keras.layers import Input

After Change



import tensorflow as tf
version_split = tf.__version__.split(".")
if version_split[0] == "2" and int(version_split[1]) > 1:
    from tensorflow.keras.mixed_precision import experimental as mixed_precision
    policy = mixed_precision.Policy("mixed_float16")
    mixed_precision.set_policy(policy)
from tensorflow.keras.models import Model
from tensorflow.keras import layers
from tensorflow.keras.layers import Input
from tensorflow.keras.layers import Lambda
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: bonlime/keras-deeplab-v3-plus
Commit Name: c44e9f868ca75e3842b869907ceb9c7babd1f3b6
Time: 2020-04-16
Author: BMAnderson@mdanderson.org
File Name: model_tf2.py
Class Name:
Method Name:


Project Name: lcswillems/torch-rl
Commit Name: f04b5957202c4afe4117be673cd73bb395f42b84
Time: 2017-10-19
Author: khrylx@gmail.com
File Name: examples/ppo_gym.py
Class Name:
Method Name:


Project Name: lcswillems/torch-rl
Commit Name: f04b5957202c4afe4117be673cd73bb395f42b84
Time: 2017-10-19
Author: khrylx@gmail.com
File Name: examples/trpo_gym.py
Class Name:
Method Name: