better handling of missing cpp_projection
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user