Commit 1a099e5e authored by anton-l's avatar anton-l
Browse files

make einops optional for RL

parent b09b152f
...@@ -5,8 +5,12 @@ import math ...@@ -5,8 +5,12 @@ import math
import torch import torch
import torch.nn as nn import torch.nn as nn
import einops try:
from einops.layers.torch import Rearrange import einops
from einops.layers.torch import Rearrange
except:
print("Einops is not installed")
pass
from ..configuration_utils import ConfigMixin from ..configuration_utils import ConfigMixin
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment