[SSD][hubconf] contiguous input tensor
This commit is contained in:
parent
9189f07093
commit
ffe84ae70a
|
@ -275,6 +275,7 @@ def nvidia_ssd_processing_utils():
|
|||
NHWC = np.array(inputs)
|
||||
NCHW = np.swapaxes(np.swapaxes(NHWC, 1, 3), 2, 3)
|
||||
tensor = torch.from_numpy(NCHW)
|
||||
tensor = tensor.contiguous()
|
||||
tensor = tensor.cuda()
|
||||
tensor = tensor.float()
|
||||
if fp16:
|
||||
|
|
Loading…
Reference in a new issue