I have a pytorch project (note if u want to check it be sure that u are cloning wrapper branch). this code has multiple tests which can be run from tests\runAllTests.py. the problem is that all tests run correctly on my machine but not on other machines. here is the error file of some other macbook machine
for i.e. this is an error from running it on another machine:
problem 1
FAIL: testKwargsPassed_error (dataPrepTests.dataloaderTests.DataloaderTests)----------------------------------------------------------------------Traceback (most recent call last):/tests/dataPrepTests/dataloaderTests.py", line 325, in testKwargsPassed_error self.assertEqual(str(context.exception),AssertionError: "__init__() got an unexpected keyword argument 'a'" != "DataLoader.__init__() got an unexpected keyword argument 'a'"- __init__() got an unexpected keyword argument 'a'+ DataLoader.__init__() got an unexpected keyword argument 'a'? +++++++++++so the code in test was like
with self.assertRaises(TypeError) as context: VAnnTsDataloader(self.dataset, **kwargs)self.assertEqual(str(context.exception),"DataLoader.__init__() got an unexpected keyword argument 'a'")so it means on my machine str(context.exception) has DataLoader. in it(=+ DataLoader.__init__() got an unexpected keyword argument 'a') but on other macbook machine doesn't have that(=- __init__() got an unexpected keyword argument 'a'). so why python implementations differ this much?
problem 2
from line 132 in error file there so many error related to equalTensors and equalDfs which are in utils/vAnnGeneralUtils.py. these funcs are tested and probably the problem is not related to them(ofc as I don't access to macbook machine so I can't check it myself, either the problem is sth wrong with implementations of these funcs or not) and the problem is more likely related to with what defaults the pytorch tensors get initialized there; for i.e. tensors on my machine get initialized to int.32 but on the other machines get initialized with int.64why this happens and how to solve this?
note u may want to give an answer here or also may want to contribute to the project to solve these problems.