mirror of
https://github.com/pytorch/pytorch.git
synced 2025-11-03 07:24:58 +08:00
fix comment on core.Net.RunAllOnMKL
Summary: Fix comment on core.Net.RunAllOnMKL (the comment was actually for core.Net.RunAllOnGPU) Reviewed By: zem7 Differential Revision: D5734309 fbshipit-source-id: 2cc40a99a2c0083c73ec1e4c8279f55f296a003c
This commit is contained in:
committed by
Facebook Github Bot
parent
77ea40c01a
commit
e9581e47a2
@ -1928,7 +1928,7 @@ class Net(object):
|
||||
for op in self._net.op:
|
||||
op.engine = "CUDNN"
|
||||
def RunAllOnMKL(self):
|
||||
"""A convenient function to run everything on the GPU."""
|
||||
"""A convenient function to run everything using MKLDNN."""
|
||||
device_option = caffe2_pb2.DeviceOption()
|
||||
device_option.device_type = caffe2_pb2.MKLDNN
|
||||
self._net.device_option.CopyFrom(device_option)
|
||||
|
||||
Reference in New Issue
Block a user