Closed dboyliao closed 3 years ago
Thanks for redirecting here!
It seems possible that the C++ code didn't compile properly, though I can't really be sure that's the case given that I only have little information on the installation process and system config you have. I'd recommend going with the first option (check attribute and use pytest.skip
with appropriate message). Ideally, it'd be great if you could send in the PR on dev
branch if you'd like, as we're doing some major developments there (it will be a v0.2.0
release later this month); if you feel that's a hassle, you could drop a message about that and I'll send in a fix shortly.
As for the installation, I'm running PyTorch on a machine that has only cuda10 driver available.
So I have to install PyTorch v1.4 instead of v1.6 as required by torchsde
.
Maybe that's the root cause of the error.
That's also why I'd like to run the tests to see if v1.4 has broken anything or not.
Fortunately, all tests pass.
I'll send a PR later when I get time to do it. I'm trying neural sde for time series data and busy on running experiments.
Ok, thanks! No worries, let me send in the fix shortly, and thanks for reporting!
Just as a side note, torch==1.6.0
is mostly strictly required for using generators in the C++ versions of BrownianTree; so as far I can tell, it shouldn't break anything else. The sub-package brownian_lib
is also set to be optionally installed, so that's likely the reason for the previous failing tests.
When I run the tests, it looks like
BrownianTree
andBrownianPath
are missing inbrownian_lib
module. After inspecting the test itself, it looks likeBrownianTree
andBrownianPath
frombrownian_lib
and_brownian
should work compatibly.I think there are two ways to fix it:
if hasattr
check in the testing code_brownian
inbrownian_lib/__init__.py
if the imports in thetry
block fails.