This commit is contained in:
Glenn Jocher 2019-03-04 16:13:31 +01:00
parent dc9f2ef6ba
commit 3f21d5bb2e
1 changed files with 1 additions and 1 deletions

View File

@ -242,7 +242,7 @@ def build_targets(target, anchor_vec, nA, nC, nG):
tconf = torch.ByteTensor(nB, nA, nG, nG).fill_(0)
tcls = torch.ByteTensor(nB, nA, nG, nG, nC).fill_(0) # nC = number of classes
if anchor_vec.is_cuda():
if anchor_vec.is_cuda:
txy = txy.cuda()
twh = twh.cuda()
tconf = tconf.cuda()