Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ========================================================================================== FAILURES ===========================================================================================
- _____________________________________________________________________________ Tester.test_fasterrcnn_resnet50_fpn _____________________________________________________________________________
- self = <test_models.Tester testMethod=test_fasterrcnn_resnet50_fpn>, model_name = 'fasterrcnn_resnet50_fpn'
- def do_test(self, model_name=model_name):
- > self._test_detection_model(model_name)
- test/test_models.py:144:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- test/test_models.py:54: in _test_detection_model
- out = model(model_input)
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/models/detection/generalized_rcnn.py:51: in forward
- proposals, proposal_losses = self.rpn(images, features, targets)
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/models/detection/rpn.py:411: in forward
- boxes, scores = self.filter_proposals(proposals, objectness, images.image_sizes, num_anchors_per_level)
- build/lib.linux-x86_64-3.7/torchvision/models/detection/rpn.py:336: in filter_proposals
- keep = box_ops.batched_nms(boxes, scores, lvl, self.nms_thresh)
- build/lib.linux-x86_64-3.7/torchvision/ops/boxes.py:72: in batched_nms
- keep = nms(boxes_for_nms, scores, iou_threshold)
- build/lib.linux-x86_64-3.7/torchvision/ops/boxes.py:32: in nms
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- ____________________________________________________________________________ Tester.test_keypointrcnn_resnet50_fpn ____________________________________________________________________________
- self = <test_models.Tester testMethod=test_keypointrcnn_resnet50_fpn>, model_name = 'keypointrcnn_resnet50_fpn'
- def do_test(self, model_name=model_name):
- > self._test_detection_model(model_name)
- test/test_models.py:144:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- test/test_models.py:54: in _test_detection_model
- out = model(model_input)
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/models/detection/generalized_rcnn.py:51: in forward
- proposals, proposal_losses = self.rpn(images, features, targets)
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/models/detection/rpn.py:411: in forward
- boxes, scores = self.filter_proposals(proposals, objectness, images.image_sizes, num_anchors_per_level)
- build/lib.linux-x86_64-3.7/torchvision/models/detection/rpn.py:336: in filter_proposals
- keep = box_ops.batched_nms(boxes, scores, lvl, self.nms_thresh)
- build/lib.linux-x86_64-3.7/torchvision/ops/boxes.py:72: in batched_nms
- keep = nms(boxes_for_nms, scores, iou_threshold)
- build/lib.linux-x86_64-3.7/torchvision/ops/boxes.py:32: in nms
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- ______________________________________________________________________________ Tester.test_maskrcnn_resnet50_fpn ______________________________________________________________________________
- self = <test_models.Tester testMethod=test_maskrcnn_resnet50_fpn>, model_name = 'maskrcnn_resnet50_fpn'
- def do_test(self, model_name=model_name):
- > self._test_detection_model(model_name)
- test/test_models.py:144:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- test/test_models.py:54: in _test_detection_model
- out = model(model_input)
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/models/detection/generalized_rcnn.py:51: in forward
- proposals, proposal_losses = self.rpn(images, features, targets)
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/models/detection/rpn.py:411: in forward
- boxes, scores = self.filter_proposals(proposals, objectness, images.image_sizes, num_anchors_per_level)
- build/lib.linux-x86_64-3.7/torchvision/models/detection/rpn.py:336: in filter_proposals
- keep = box_ops.batched_nms(boxes, scores, lvl, self.nms_thresh)
- build/lib.linux-x86_64-3.7/torchvision/ops/boxes.py:72: in batched_nms
- keep = nms(boxes_for_nms, scores, iou_threshold)
- build/lib.linux-x86_64-3.7/torchvision/ops/boxes.py:32: in nms
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- _____________________________________________________________________ RoIPoolTester.test_roi_pool_align_non_cont_grad_cpu _____________________________________________________________________
- self = <test_ops.RoIPoolTester testMethod=test_roi_pool_align_non_cont_grad_cpu>
- def test_roi_pool_align_non_cont_grad_cpu(self):
- devices = ['cpu']
- if torch.cuda.is_available():
- devices.append('cuda')
- for d in devices:
- device = torch.device(d)
- rois = torch.tensor([
- [0, 0, 0, 9, 9],
- [0, 0, 5, 5, 9],
- [0, 5, 5, 9, 9]], dtype=self.dtype, device=device)
- grad_cont = torch.rand(3, 1, 5, 5, dtype=self.dtype, device=device)
- grad = grad_cont.permute(2, 1, 3, 0).contiguous().permute(3, 1, 0, 2)
- for op in ['RoIPool', 'RoIAlign']:
- x = torch.rand(1, 1, 10, 10, dtype=self.dtype, device=device, requires_grad=True)
- kwargs = {}
- if op == 'RoIAlign':
- kwargs['sampling_ratio'] = 1
- m = getattr(ops, op)((5, 5), 1, **kwargs)
- > y = m(x, rois)
- test/test_ops.py:162:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:75: in forward
- return roi_pool(input, rois, self.output_size, self.spatial_scale)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:62: in roi_pool
- return _RoIPoolFunction.apply(input, rois, output_size, spatial_scale)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:19: in forward
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- ____________________________________________________________________________ RoIPoolTester.test_roi_pool_basic_cpu ____________________________________________________________________________
- self = <test_ops.RoIPoolTester testMethod=test_roi_pool_basic_cpu>
- def test_roi_pool_basic_cpu(self):
- device = torch.device('cpu')
- x = torch.rand(1, 1, 10, 10, dtype=self.dtype, device=device)
- rois = torch.tensor([[0, 0, 0, 4, 4]], # format is (xyxy)
- dtype=self.dtype, device=device)
- pool_h, pool_w = (5, 5)
- roi_pool = ops.RoIPool((pool_h, pool_w), 1)
- > y = roi_pool(x, rois)
- test/test_ops.py:50:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:75: in forward
- return roi_pool(input, rois, self.output_size, self.spatial_scale)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:62: in roi_pool
- return _RoIPoolFunction.apply(input, rois, output_size, spatial_scale)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:19: in forward
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- ___________________________________________________________________________ RoIPoolTester.test_roi_pool_basic_cuda ____________________________________________________________________________
- self = <test_ops.RoIPoolTester testMethod=test_roi_pool_basic_cuda>
- @unittest.skipIf(not torch.cuda.is_available(), "CUDA unavailable")
- def test_roi_pool_basic_cuda(self):
- device = torch.device('cuda')
- x = torch.rand(1, 1, 10, 10, dtype=self.dtype, device=device)
- rois = torch.tensor([[0, 0, 0, 4, 4]], # format is (xyxy)
- dtype=self.dtype, device=device)
- pool_h, pool_w = (5, 5)
- roi_pool = ops.RoIPool((pool_h, pool_w), 1)
- > y = roi_pool(x, rois)
- test/test_ops.py:200:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:75: in forward
- return roi_pool(input, rois, self.output_size, self.spatial_scale)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:62: in roi_pool
- return _RoIPoolFunction.apply(input, rois, output_size, spatial_scale)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:19: in forward
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- _______________________________________________________________________________ RoIPoolTester.test_roi_pool_cpu _______________________________________________________________________________
- self = <test_ops.RoIPoolTester testMethod=test_roi_pool_cpu>
- def test_roi_pool_cpu(self):
- device = torch.device('cpu')
- x = torch.rand(2, 1, 10, 10, dtype=self.dtype, device=device)
- rois = torch.tensor([[0, 0, 0, 9, 9], # format is (xyxy)
- [0, 0, 5, 4, 9],
- [0, 5, 5, 9, 9],
- [1, 0, 0, 9, 9]],
- dtype=self.dtype, device=device)
- pool_h, pool_w = (5, 5)
- roi_pool = ops.RoIPool((pool_h, pool_w), 1)
- > y = roi_pool(x, rois)
- test/test_ops.py:72:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:75: in forward
- return roi_pool(input, rois, self.output_size, self.spatial_scale)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:62: in roi_pool
- return _RoIPoolFunction.apply(input, rois, output_size, spatial_scale)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:19: in forward
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- _________________________________________________________________________ RoIPoolTester.test_roi_pool_cpu_empty_rois __________________________________________________________________________
- self = <test_ops.RoIPoolTester testMethod=test_roi_pool_cpu_empty_rois>
- def test_roi_pool_cpu_empty_rois(self):
- device = torch.device('cpu')
- x = torch.tensor(
- [[[[0.1767, 1.2851, 4.2325, 4.8645, 7.1496]],
- [[2.5916, 4.3361, 3.8143, 6.1329, 2.0230]],
- [[1.4492, 3.3384, 4.0816, 6.3116, 5.1068]]]],
- dtype=self.dtype, device=device)
- rois = torch.tensor(
- [[0., 1., 0., 4., 0.],
- [0., 2., 0., 3., 0.],
- [0., 0., 0., 0., 0.],
- [0., 0., 0., 0., 0.],
- [0., 2., 0., 2., 0.]],
- dtype=self.dtype, device=device)
- pool_h, pool_w = (1, 2)
- roi_pool = ops.RoIPool((pool_h, pool_w), 1)
- > y = roi_pool(x, rois)
- test/test_ops.py:100:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:75: in forward
- return roi_pool(input, rois, self.output_size, self.spatial_scale)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:62: in roi_pool
- return _RoIPoolFunction.apply(input, rois, output_size, spatial_scale)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:19: in forward
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- ______________________________________________________________________________ RoIPoolTester.test_roi_pool_cuda _______________________________________________________________________________
- self = <test_ops.RoIPoolTester testMethod=test_roi_pool_cuda>
- @unittest.skipIf(not torch.cuda.is_available(), "CUDA unavailable")
- def test_roi_pool_cuda(self):
- device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
- x = torch.rand(2, 1, 10, 10, dtype=self.dtype, device=device)
- rois = torch.tensor([[0, 0, 0, 9, 9], # format is (xyxy)
- [0, 0, 5, 4, 9],
- [0, 5, 5, 9, 9],
- [1, 0, 0, 9, 9]],
- dtype=self.dtype, device=device)
- pool_h, pool_w = (5, 5)
- roi_pool = ops.RoIPool((pool_h, pool_w), 1)
- > y = roi_pool(x, rois)
- test/test_ops.py:222:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:75: in forward
- return roi_pool(input, rois, self.output_size, self.spatial_scale)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:62: in roi_pool
- return _RoIPoolFunction.apply(input, rois, output_size, spatial_scale)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:19: in forward
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- __________________________________________________________________________ RoIPoolTester.test_roi_pool_gradcheck_cpu __________________________________________________________________________
- self = <test_ops.RoIPoolTester testMethod=test_roi_pool_gradcheck_cpu>
- def test_roi_pool_gradcheck_cpu(self):
- device = torch.device('cpu')
- x = torch.rand(1, 1, 10, 10, dtype=self.dtype, device=device, requires_grad=True)
- rois = torch.tensor([
- [0, 0, 0, 9, 9],
- [0, 0, 5, 5, 9],
- [0, 5, 5, 9, 9]], dtype=self.dtype, device=device)
- m = ops.RoIPool((5, 5), 1).to(dtype=self.dtype, device=device)
- def func(input):
- return m(input, rois)
- > assert gradcheck(func, (x,)), 'gradcheck failed for roi_pool CPU'
- test/test_ops.py:188:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /usr/lib/python3.7/site-packages/torch/autograd/gradcheck.py:256: in gradcheck
- func_out = func(*tupled_inputs)
- test/test_ops.py:186: in func
- return m(input, rois)
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:75: in forward
- return roi_pool(input, rois, self.output_size, self.spatial_scale)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:62: in roi_pool
- return _RoIPoolFunction.apply(input, rois, output_size, spatial_scale)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:19: in forward
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- _________________________________________________________________________ RoIPoolTester.test_roi_pool_gradcheck_cuda __________________________________________________________________________
- self = <test_ops.RoIPoolTester testMethod=test_roi_pool_gradcheck_cuda>
- @unittest.skipIf(not torch.cuda.is_available(), "CUDA unavailable")
- def test_roi_pool_gradcheck_cuda(self):
- device = torch.device('cuda')
- x = torch.rand(1, 1, 10, 10, dtype=self.dtype, device=device, requires_grad=True)
- rois = torch.tensor([
- [0, 0, 0, 9, 9],
- [0, 0, 5, 5, 9],
- [0, 5, 5, 9, 9]], dtype=self.dtype, device=device)
- m = ops.RoIPool((5, 5), 1).to(dtype=self.dtype, device=device)
- def func(input):
- return m(input, rois)
- > assert gradcheck(func, (x,)), 'gradcheck failed for roi_pool CUDA'
- test/test_ops.py:274:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /usr/lib/python3.7/site-packages/torch/autograd/gradcheck.py:256: in gradcheck
- func_out = func(*tupled_inputs)
- test/test_ops.py:272: in func
- return m(input, rois)
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:75: in forward
- return roi_pool(input, rois, self.output_size, self.spatial_scale)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:62: in roi_pool
- return _RoIPoolFunction.apply(input, rois, output_size, spatial_scale)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:19: in forward
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- __________________________________________________________________________ RoIPoolTester.test_roi_pool_gradient_cpu ___________________________________________________________________________
- self = <test_ops.RoIPoolTester testMethod=test_roi_pool_gradient_cpu>
- def test_roi_pool_gradient_cpu(self):
- device = torch.device('cpu')
- x = torch.ones(1, 1, 10, 10, dtype=self.dtype, device=device, requires_grad=True)
- rois = torch.tensor([
- [0, 0, 0, 9, 9],
- [0, 0, 5, 4, 9],
- [0, 0, 0, 4, 4]],
- dtype=self.dtype, device=device)
- layer = ops.RoIPool((5, 5), 1).to(dtype=self.dtype, device=device)
- > y = layer(x, rois)
- test/test_ops.py:122:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:75: in forward
- return roi_pool(input, rois, self.output_size, self.spatial_scale)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:62: in roi_pool
- return _RoIPoolFunction.apply(input, rois, output_size, spatial_scale)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:19: in forward
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- __________________________________________________________________________ RoIPoolTester.test_roi_pool_gradient_cuda __________________________________________________________________________
- self = <test_ops.RoIPoolTester testMethod=test_roi_pool_gradient_cuda>
- @unittest.skipIf(not torch.cuda.is_available(), "CUDA unavailable")
- def test_roi_pool_gradient_cuda(self):
- device = torch.device('cuda')
- layer = ops.RoIPool((5, 5), 1).to(dtype=self.dtype, device=device)
- x = torch.ones(1, 1, 10, 10, dtype=self.dtype, device=device, requires_grad=True)
- rois = torch.tensor([
- [0, 0, 0, 9, 9],
- [0, 0, 5, 4, 9],
- [0, 0, 0, 4, 4]],
- dtype=self.dtype, device=device)
- > y = layer(x, rois)
- test/test_ops.py:243:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:75: in forward
- return roi_pool(input, rois, self.output_size, self.spatial_scale)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:62: in roi_pool
- return _RoIPoolFunction.apply(input, rois, output_size, spatial_scale)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_pool.py:19: in forward
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- ___________________________________________________________________________ RoIAlignTester.test_roi_align_basic_cpu ___________________________________________________________________________
- self = <test_ops.RoIAlignTester testMethod=test_roi_align_basic_cpu>
- def test_roi_align_basic_cpu(self):
- device = torch.device('cpu')
- x = self.x.to(device)
- single_roi = self.single_roi.to(device)
- gt_y_single = self.gt_y_single.to(device)
- pool_h, pool_w = (5, 5)
- roi_align = ops.RoIAlign((pool_h, pool_w), spatial_scale=1, sampling_ratio=2).to(device=device)
- > y = roi_align(x, single_roi)
- test/test_ops.py:345:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:83: in forward
- return roi_align(input, rois, self.output_size, self.spatial_scale, self.sampling_ratio)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:69: in roi_align
- return _RoIAlignFunction.apply(input, rois, output_size, spatial_scale, sampling_ratio)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:21: in forward
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- __________________________________________________________________________ RoIAlignTester.test_roi_align_basic_cuda ___________________________________________________________________________
- self = <test_ops.RoIAlignTester testMethod=test_roi_align_basic_cuda>
- @unittest.skipIf(not torch.cuda.is_available(), "CUDA unavailable")
- def test_roi_align_basic_cuda(self):
- device = torch.device('cuda')
- x = self.x.to(device)
- single_roi = self.single_roi.to(device)
- gt_y_single = self.gt_y_single.to(device)
- pool_h, pool_w = (5, 5)
- roi_align = ops.RoIAlign((pool_h, pool_w), spatial_scale=1, sampling_ratio=2).to(device=device)
- > y = roi_align(x, single_roi)
- test/test_ops.py:376:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:83: in forward
- return roi_align(input, rois, self.output_size, self.spatial_scale, self.sampling_ratio)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:69: in roi_align
- return _RoIAlignFunction.apply(input, rois, output_size, spatial_scale, sampling_ratio)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:21: in forward
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- ______________________________________________________________________________ RoIAlignTester.test_roi_align_cpu ______________________________________________________________________________
- self = <test_ops.RoIAlignTester testMethod=test_roi_align_cpu>
- def test_roi_align_cpu(self):
- device = torch.device('cpu')
- x = self.x.to(device)
- rois = self.rois.to(device)
- gt_y_multiple = self.gt_y_multiple.to(device)
- pool_h, pool_w = (5, 5)
- roi_align = ops.RoIAlign((pool_h, pool_w), spatial_scale=1, sampling_ratio=2).to(device=device)
- > y = roi_align(x, rois)
- test/test_ops.py:360:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:83: in forward
- return roi_align(input, rois, self.output_size, self.spatial_scale, self.sampling_ratio)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:69: in roi_align
- return _RoIAlignFunction.apply(input, rois, output_size, spatial_scale, sampling_ratio)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:21: in forward
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- _____________________________________________________________________________ RoIAlignTester.test_roi_align_cuda ______________________________________________________________________________
- self = <test_ops.RoIAlignTester testMethod=test_roi_align_cuda>
- @unittest.skipIf(not torch.cuda.is_available(), "CUDA unavailable")
- def test_roi_align_cuda(self):
- device = torch.device('cuda')
- x = self.x.to(device)
- rois = self.rois.to(device)
- gt_y_multiple = self.gt_y_multiple.to(device)
- pool_h, pool_w = (5, 5)
- roi_align = ops.RoIAlign((pool_h, pool_w), spatial_scale=1, sampling_ratio=2).to(device=device)
- > y = roi_align(x, rois)
- test/test_ops.py:392:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:83: in forward
- return roi_align(input, rois, self.output_size, self.spatial_scale, self.sampling_ratio)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:69: in roi_align
- return _RoIAlignFunction.apply(input, rois, output_size, spatial_scale, sampling_ratio)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:21: in forward
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- _________________________________________________________________________ RoIAlignTester.test_roi_align_gradcheck_cpu _________________________________________________________________________
- self = <test_ops.RoIAlignTester testMethod=test_roi_align_gradcheck_cpu>
- def test_roi_align_gradcheck_cpu(self):
- dtype = torch.float64
- device = torch.device('cpu')
- m = ops.RoIAlign((5, 5), 0.5, 1).to(dtype=dtype, device=device)
- x = torch.rand(1, 1, 10, 10, dtype=dtype, device=device, requires_grad=True)
- rois = self.rois.to(device=device, dtype=dtype)
- def func(input):
- return m(input, rois)
- > assert gradcheck(func, (x,)), 'gradcheck failed for RoIAlign CPU'
- test/test_ops.py:428:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /usr/lib/python3.7/site-packages/torch/autograd/gradcheck.py:256: in gradcheck
- func_out = func(*tupled_inputs)
- test/test_ops.py:426: in func
- return m(input, rois)
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:83: in forward
- return roi_align(input, rois, self.output_size, self.spatial_scale, self.sampling_ratio)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:69: in roi_align
- return _RoIAlignFunction.apply(input, rois, output_size, spatial_scale, sampling_ratio)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:21: in forward
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- ________________________________________________________________________ RoIAlignTester.test_roi_align_gradcheck_cuda _________________________________________________________________________
- self = <test_ops.RoIAlignTester testMethod=test_roi_align_gradcheck_cuda>
- @unittest.skipIf(not torch.cuda.is_available(), "CUDA unavailable")
- def test_roi_align_gradcheck_cuda(self):
- dtype = torch.float64
- device = torch.device('cuda')
- m = ops.RoIAlign((5, 5), 0.5, 1).to(dtype=dtype, device=device)
- x = torch.rand(1, 1, 10, 10, dtype=dtype, device=device, requires_grad=True)
- rois = self.rois.to(device=device, dtype=dtype)
- def func(input):
- return m(input, rois)
- > assert gradcheck(func, (x,)), 'gradcheck failed for RoIAlign CUDA'
- test/test_ops.py:462:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /usr/lib/python3.7/site-packages/torch/autograd/gradcheck.py:256: in gradcheck
- func_out = func(*tupled_inputs)
- test/test_ops.py:460: in func
- return m(input, rois)
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:83: in forward
- return roi_align(input, rois, self.output_size, self.spatial_scale, self.sampling_ratio)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:69: in roi_align
- return _RoIAlignFunction.apply(input, rois, output_size, spatial_scale, sampling_ratio)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:21: in forward
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- _________________________________________________________________________ RoIAlignTester.test_roi_align_gradient_cpu __________________________________________________________________________
- self = <test_ops.RoIAlignTester testMethod=test_roi_align_gradient_cpu>
- def test_roi_align_gradient_cpu(self):
- """
- Compute gradients for RoIAlign with multiple bounding boxes on CPU
- """
- device = torch.device('cpu')
- pool_h, pool_w = (5, 5)
- roi_align = ops.RoIAlign((pool_h, pool_w), spatial_scale=1, sampling_ratio=2).to(device=device)
- x = self.x.to(device).clone()
- rois = self.rois.to(device)
- gt_grad = self.x_grad.to(device)
- x.requires_grad = True
- > y = roi_align(x, rois)
- test/test_ops.py:412:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:83: in forward
- return roi_align(input, rois, self.output_size, self.spatial_scale, self.sampling_ratio)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:69: in roi_align
- return _RoIAlignFunction.apply(input, rois, output_size, spatial_scale, sampling_ratio)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:21: in forward
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- _________________________________________________________________________ RoIAlignTester.test_roi_align_gradient_cuda _________________________________________________________________________
- self = <test_ops.RoIAlignTester testMethod=test_roi_align_gradient_cuda>
- @unittest.skipIf(not torch.cuda.is_available(), "CUDA unavailable")
- def test_roi_align_gradient_cuda(self):
- """
- Compute gradients for RoIAlign with multiple bounding boxes on the GPU
- """
- device = torch.device('cuda')
- pool_h, pool_w = (5, 5)
- roi_align = ops.RoIAlign((pool_h, pool_w), spatial_scale=1, sampling_ratio=2).to(device=device)
- x = self.x.to(device).clone()
- rois = self.rois.to(device)
- gt_grad = self.x_grad.to(device)
- x.requires_grad = True
- > y = roi_align(x, rois)
- test/test_ops.py:445:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- /usr/lib/python3.7/site-packages/torch/nn/modules/module.py:493: in __call__
- result = self.forward(*input, **kwargs)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:83: in forward
- return roi_align(input, rois, self.output_size, self.spatial_scale, self.sampling_ratio)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:69: in roi_align
- return _RoIAlignFunction.apply(input, rois, output_size, spatial_scale, sampling_ratio)
- build/lib.linux-x86_64-3.7/torchvision/ops/roi_align.py:21: in forward
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- _____________________________________________________________________________________ NMSTester.test_nms ______________________________________________________________________________________
- self = <test_ops.NMSTester testMethod=test_nms>
- def test_nms(self):
- boxes, scores = self._create_tensors(1000)
- err_msg = 'NMS incompatible between CPU and reference implementation for IoU={}'
- for iou in [0.2, 0.5, 0.8]:
- keep_ref = self.reference_nms(boxes, scores, iou)
- > keep = ops.nms(boxes, scores, iou)
- test/test_ops.py:501:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- build/lib.linux-x86_64-3.7/torchvision/ops/boxes.py:32: in nms
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- ___________________________________________________________________________________ NMSTester.test_nms_cuda ___________________________________________________________________________________
- self = <test_ops.NMSTester testMethod=test_nms_cuda>
- @unittest.skipIf(not torch.cuda.is_available(), "CUDA unavailable")
- def test_nms_cuda(self):
- boxes, scores = self._create_tensors(1000)
- err_msg = 'NMS incompatible between CPU and CUDA for IoU={}'
- for iou in [0.2, 0.5, 0.8]:
- > r_cpu = ops.nms(boxes, scores, iou)
- test/test_ops.py:510:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- build/lib.linux-x86_64-3.7/torchvision/ops/boxes.py:32: in nms
- _C = _lazy_import()
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- def _lazy_import():
- """
- Make sure that CUDA versions match between the pytorch install and torchvision install
- """
- global _C
- if _C is not None:
- return _C
- import torch
- > from torchvision import _C as C
- E ImportError: dynamic module does not define module export function (PyInit__C)
- build/lib.linux-x86_64-3.7/torchvision/extension.py:12: ImportError
- ====================================================================================== warnings summary =======================================================================================
- build/lib.linux-x86_64-3.7/torchvision/datasets/lsun.py:8
- /home/reik/.cache/yay/python-torchvision/src/vision-0.4.0/build/lib.linux-x86_64-3.7/torchvision/datasets/lsun.py:8: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
- from collections import Iterable
- /usr/lib/python3.7/site-packages/av/container/__init__.py:1
- /usr/lib/python3.7/site-packages/av/container/__init__.py:1: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated, and in 3.8 it will stop working
- from .core import Container, open
- test/test_cpp_models.py::Tester::test_resnet101
- /usr/lib/python3.7/site-packages/torch/jit/__init__.py:702: TracerWarning: Output nr 1. of the traced function does not match the corresponding output of the Python function. Detailed error:
- Not within tolerance rtol=1e-05 atol=1e-05 at input[0, 929] (-2.8711626529693604 vs. -2.87127685546875) and 1 other locations (0.00%)
- _check_trace([example_inputs], func, executor_options, traced, check_tolerance, _force_outplace)
- test/test_cpp_models.py::Tester::test_wide_resnet101_2
- /usr/lib/python3.7/site-packages/torch/jit/__init__.py:702: TracerWarning: Output nr 1. of the traced function does not match the corresponding output of the Python function. Detailed error:
- Not within tolerance rtol=1e-05 atol=1e-05 at input[0, 402] (-1.1914129257202148 vs. -1.1916732788085938) and 1 other locations (0.00%)
- _check_trace([example_inputs], func, executor_options, traced, check_tolerance, _force_outplace)
- -- Docs: https://docs.pytest.org/en/latest/warnings.html
- =============================================================== 23 failed, 159 passed, 5 skipped, 4 warnings in 1421.04 seconds ===============================================================
- ==> ERROR: A failure occurred in check().
- Aborting...
- Error making: python-torchvision
Advertisement
Add Comment
Please, Sign In to add comment