torchtyping => jaxtyping (#1838)

* Run `ruff --fix`

* Add jaxtyping migration script

* Run migration scripts + ruff + black

* Merge remote-tracking branch 'origin/main' into brent/jaxtyping

* black

* Fix lint

* fix lint

* Cleanup and more specific types

* Fixed annotation errors

* Fix more errors

* Fix annotation

* Delete _torchtyping_to_jaxtyping.py

---------

Co-authored-by: Matt Tancik <mattt4001@gmail.com>
This commit is contained in:
Brent YiandMatt Tancik authored and GitHub committed 2023-05-16 15:57:47 -07:00
1 parent 9b6290ea43
commit 6ba2a18b2b
65 files changed
+597 -531

No files matched your search

+1 -3
View File
@@ -9,10 +9,8 @@ from nerfstudio.fields.instant_ngp_field import TCNNInstantNGPField
def test_tcnn_instant_ngp_field():
"""Test the tiny-cuda-nn field"""
# pylint: disable=import-outside-toplevel
# pylint: disable=unused-import
try:
import tinycudann as tcnn
import tinycudann as tcnn # pylint:disable=import-outside-toplevel, unused-import
except ImportError as e:
# tinycudann module doesn't exist
print(e)