Loading pkgs/development/python-modules/pytorch3d/default.nix +13 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,19 @@ buildPythonPackage rec { pythonImportsCheck = [ "pytorch3d" ]; passthru.tests.rotations-cuda = cudaPackages.writeGpuTestPython { libraries = ps: [ ps.pytorch3d ]; } '' import pytorch3d.transforms as p3dt M = p3dt.random_rotations(n=10, device="cuda") assert "cuda" in M.device.type angles = p3dt.matrix_to_euler_angles(M, "XYZ") assert "cuda" in angles.device.type assert angles.shape == (10, 3), angles.shape print(angles) ''; meta = { description = "FAIR's library of reusable components for deep learning with 3D data"; homepage = "https://github.com/facebookresearch/pytorch3d"; Loading Loading
pkgs/development/python-modules/pytorch3d/default.nix +13 −0 Original line number Diff line number Diff line Loading @@ -46,6 +46,19 @@ buildPythonPackage rec { pythonImportsCheck = [ "pytorch3d" ]; passthru.tests.rotations-cuda = cudaPackages.writeGpuTestPython { libraries = ps: [ ps.pytorch3d ]; } '' import pytorch3d.transforms as p3dt M = p3dt.random_rotations(n=10, device="cuda") assert "cuda" in M.device.type angles = p3dt.matrix_to_euler_angles(M, "XYZ") assert "cuda" in angles.device.type assert angles.shape == (10, 3), angles.shape print(angles) ''; meta = { description = "FAIR's library of reusable components for deep learning with 3D data"; homepage = "https://github.com/facebookresearch/pytorch3d"; Loading