Skip to content

Commit

Permalink
prevent nn.GPU from switching devices of MultiCudaTensor
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholas-leonard committed Jul 4, 2016
1 parent 26dbbfe commit be944cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions MultiCudaTensor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
-- NCEModule requires.
------------------------------------------------------------------------
local MCT = torch.class("torch.MultiCudaTensor")
MCT.__noGPU__ = true -- will prevent nn.GPU from switching devices

-- each buffer is indexed by device
local buffers1, buffers2 = {}, {}
Expand Down

0 comments on commit be944cf

Please sign in to comment.