2bfe5bfcec7759ae022b1a479411aa7d1b8401f1,example/example7.py,,,#,26

Before Change


    "device_map": []
}
args = namedtuple("args_namedtuple", ",".join(common.keys()))
for k, v in common.items():
    setattr(args, k, v)

for pool_layer in range(1, 13):
    setattr(args, "pooling_layer", [-pool_layer])
    server = BertServer(args)
    server.start()

After Change



//save bert vectors and labels
stacked_subset_vec_all_layers = np.stack(subset_vec_all_layers)
np.save("example7_5k_2",stacked_subset_vec_all_layers)
np_subset_label = np.array(subset_label)
np.save("example7_5k_2_subset_label",np_subset_label)

//load bert vectors and labels
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: hanxiao/bert-as-service
Commit Name: 2bfe5bfcec7759ae022b1a479411aa7d1b8401f1
Time: 2019-05-06
Author: zyn2122@gmail.com
File Name: example/example7.py
Class Name:
Method Name:


Project Name: hyperspy/hyperspy
Commit Name: b7042cdb7fc8c7b530f88d4825eb8aae31769bab
Time: 2020-05-14
Author: eric.prestat@gmail.com
File Name: hyperspy/tests/io/test_emd.py
Class Name: TestCaseSaveAndRead
Method Name: test_save_and_read


Project Name: deepfakes/faceswap
Commit Name: b1cfbe458c0bf123591348c54973d49297fd55ab
Time: 2021-02-14
Author: 36920800+torzdf@users.noreply.github.com
File Name: tools/mask/mask.py
Class Name: Mask
Method Name: _update_faces