Closed imgarylai closed 5 years ago
https://github.com/elitcloud/elit/blob/879119955a0abaf91f9d5cc20e901aeaf8aef72b/elit/nlp/tagger/mxnet_util.py#L24-L34
We run models on a multi-gpus server, and each model use its gpu. In this case, we can't specify which gpu is gonna to be used outside this project.
Now we can specify a particular device, eg. tagger = POSTagger(context=mx.gpu(3)).
tagger = POSTagger(context=mx.gpu(3))
https://github.com/elitcloud/elit/blob/879119955a0abaf91f9d5cc20e901aeaf8aef72b/elit/nlp/tagger/mxnet_util.py#L24-L34
We run models on a multi-gpus server, and each model use its gpu. In this case, we can't specify which gpu is gonna to be used outside this project.