Skip to content

test error: test_meta_tensor #4126

@wyli

Description

@wyli

Describe the bug

01:00:56  ======================================================================
01:00:56  FAIL: test_pickling (tests.test_meta_tensor.TestMetaTensor)
01:00:56  ----------------------------------------------------------------------
01:00:56  Traceback (most recent call last):
01:00:56    File "/home/jenkins/agent/workspace/Monai-latest-image/tests/test_meta_tensor.py", line 252, in test_pickling
01:00:56      self.check(m2, m, ids=False)
01:00:56    File "/home/jenkins/agent/workspace/Monai-latest-image/tests/test_meta_tensor.py", line 81, in check
01:00:56      self.assertIsInstance(out, type(orig))
01:00:56  AssertionError: tensor([[[0.3962, 0.9173, 0.7437, 0.3341, 0.4098, 0.3432, 0.1271, 0.6718],
01:00:56           [0.3670, 0.5618, 0.4506, 0.5650, 0.2895, 0.9468, 0.6888, 0.6819],
01:00:56           [0.3909, 0.7587, 0.9295, 0.4800, 0.9351, 0.0733, 0.4742, 0.0840],
01:00:56           [0.5425, 0.4293, 0.2237, 0.9117, 0.3608, 0.4339, 0.7344, 0.9005],
01:00:56           [0.5106, 0.0122, 0.6607, 0.0010, 0.6300, 0.2717, 0.6291, 0.3825],
01:00:56           [0.0115, 0.9764, 0.6277, 0.1557, 0.6526, 0.6177, 0.0266, 0.6330],
01:00:56           [0.7035, 0.0930, 0.4120, 0.8611, 0.0737, 0.5855, 0.8366, 0.0864],
01:00:56           [0.5331, 0.4385, 0.8556, 0.1940, 0.2305, 0.7927, 0.0265, 0.0143],
01:00:56           [0.1303, 0.9910, 0.4199, 0.3048, 0.2329, 0.5578, 0.5873, 0.6963],
01:00:56           [0.1361, 0.1508, 0.0750, 0.4933, 0.5001, 0.1407, 0.2277, 0.2387]]]) is not an instance of <class 'monai.data.meta_tensor.MetaTensor'>
01:00:56  
01:00:56  ----------------------------------------------------------------------

from container 21.02 Pytorch version: 1.8.0a0+52ea372

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions