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
//load bert vectors and labels
subset_vec_all_layers = np.load("example7_5k_mxnet.npy")
np_subset_label = np.load("example7_5k_mxnet_subset_label.npy")
subset_label = np_subset_label.tolist()
//=========================== visulize ===========================
def vis(embed, vis_alg="PCA", pool_alg="REDUCE_MEAN"):
plt.close()
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: 1adrianb/face-alignment
Commit Name: 63523c0725dde9d305310aaa11c83e9b5c922d88
Time: 2020-12-18
Author: adrian@adrianbulat.com
File Name: face_alignment/api.py
Class Name: FaceAlignment
Method Name: __init__
Project Name: OpenNMT/OpenNMT-py
Commit Name: 857e36921ab5ca51c919839ec0b6e87585160d0c
Time: 2019-02-14
Author: dylan.flaute@gmail.com
File Name: onmt/decoders/ensemble.py
Class Name:
Method Name: load_test_model