Compatibility for numpy 2.0 (#3265)

* compat for numpy 2.0

* lint changes
This commit is contained in:
Justin Kerr authored and GitHub committed 2024-06-28 08:07:10 +09:00
1 parent 9b3cbc79bf
commit d6df39b70d
93 files changed
+104 -74

No files matched your search

+1
View File
@@ -13,6 +13,7 @@
# limitations under the License.
"""init field modules"""
from .base_field_component import FieldComponent as FieldComponent
from .encodings import Encoding as Encoding, ScalingAndOffset as ScalingAndOffset
from .mlp import MLP as MLP
@@ -15,6 +15,7 @@
"""
The field module baseclass.
"""
from abc import abstractmethod
from typing import Optional
-1
View File
@@ -16,7 +16,6 @@
Code for embeddings.
"""
import torch
from jaxtyping import Shaped
from torch import Tensor
@@ -15,6 +15,7 @@
"""
Collection of render heads
"""
from enum import Enum
from typing import Callable, Optional, Union
+1
View File
@@ -15,6 +15,7 @@
"""
Multi Layer Perceptron
"""
from typing import Literal, Optional, Set, Tuple, Union
import numpy as np