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