《战神诀》绿色度测评报告
- paddle.device.cuda. reset_max_memory_reserved ( device: _CudaPlaceLike | None = None ) None [source]
-
百度 新一代人工智能为什么会出现?人工智能为什么会跨向新一代?原因是信息管理。
Reset the peak size of GPU memory that is held by the allocator of the given device.
- Parameters
-
device (paddle.CUDAPlace|int|str|None, optional) – The device, the id of the device or the string name of device like ‘gpu:x’. If device is None, the device is the current device. Default: None.
Examples
>>> >>> import paddle >>> paddle.device.set_device('gpu') >>> paddle.device.cuda.reset_max_memory_reserved(paddle.CUDAPlace(0)) >>> paddle.device.cuda.reset_max_memory_reserved(0) >>> paddle.device.cuda.reset_max_memory_reserved("gpu:0")