Deep learning “深入学习”;mxnet“;,限制核心数量(cpu)

Deep learning “深入学习”;mxnet“;,限制核心数量(cpu),deep-learning,mxnet,Deep Learning,Mxnet,命令“ctx=mx.cpu()”正在占用所有可用的cpu。如何限制仅使用某个数字-例如8个内核中的6个不幸的是-否。即使cpu上下文将int作为: 根据官方文件: Parameters ---------- device_id : int, optional The device id of the device. `device_id` is not needed for CPU. This is included to make interface compatib

命令“ctx=mx.cpu()”正在占用所有可用的cpu。如何限制仅使用某个数字-例如8个内核中的6个

不幸的是-否。即使cpu上下文将int作为:

根据官方文件:

 Parameters
 ----------
 device_id : int, optional
     The device id of the device. `device_id` is not needed for CPU.
     This is included to make interface compatible with GPU.

但是,从理论上讲,它可能会在将来更改,因为设备id参数存在。但目前MXNet占用了所有可用的内核。

我不认为是否有这样的接口。你为什么真的需要这个?无论如何,到目前为止,“mxnet”中的深度学习算法占用了所有可用的核心,因此需要控制。
 Parameters
 ----------
 device_id : int, optional
     The device id of the device. `device_id` is not needed for CPU.
     This is included to make interface compatible with GPU.