better handling of missing cpp_projection
This commit is contained in:
parent
90666a695c
commit
fe7c7b3db0
@ -1,5 +1,9 @@
|
|||||||
import torch
|
import torch
|
||||||
import cpp_projection
|
try:
|
||||||
|
import cpp_projection
|
||||||
|
cpp_projection_available = True
|
||||||
|
except ImportError:
|
||||||
|
cpp_projection_available = False
|
||||||
import numpy as np
|
import numpy as np
|
||||||
from .base_projection import BaseProjection
|
from .base_projection import BaseProjection
|
||||||
from tensordict.nn import TensorDictModule
|
from tensordict.nn import TensorDictModule
|
||||||
|
Loading…
Reference in New Issue
Block a user