c0f75b3a70cc2e433472de9dfd2406c685b561a9,test/test_item_ranking.py,,,#,33
Before Change
train_data, test_data, n_user, n_item = load_data_neg(test_size=0.2, sep="\t")
config = tf.ConfigProto()
config.gpu_options.allow_growth = True
with tf.Session(config=config) as sess:
model = None
After Change
try:
gpus = tf.config.experimental.list_physical_devices("GPU")
tf.config.experimental.set_memory_growth(gpus[0], True)
except:
// Invalid device or cannot modify virtual devices once initialized.
pass
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: cheungdaven/DeepRec
Commit Name: c0f75b3a70cc2e433472de9dfd2406c685b561a9
Time: 2020-02-10
Author: soonmok.kwon@voyagerx.com
File Name: test/test_item_ranking.py
Class Name:
Method Name:
Project Name: hanxiao/bert-as-service
Commit Name: dd3c13d51975d7ca569681dd19639473d19e8e85
Time: 2018-12-14
Author: hanhxiao@tencent.com
File Name: server/bert_serving/server/__init__.py
Class Name: BertWorker
Method Name: run
Project Name: tensorlayer/srgan
Commit Name: 87ad8f5eb43629954755893fcb2674e53f8dc982
Time: 2019-05-08
Author: dhsig552@163.com
File Name: main.py
Class Name:
Method Name: evaluate
Project Name: horovod/horovod
Commit Name: 340e427e310feb1e8e65d231504eb2879e956db6
Time: 2018-06-06
Author: alexander.sergeev@live.com
File Name: test/test_tensorflow.py
Class Name: MPITests
Method Name: test_horovod_allreduce_multi_gpu