Skip to content

Commit

Permalink
remove redundant import
Browse files Browse the repository at this point in the history
  • Loading branch information
issamarabi committed Oct 7, 2023
1 parent 5406bff commit 4180f3d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion optimum/bettertransformer/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
BartEncoderLayerBetterTransformer,
BertLayerBetterTransformer,
CLIPLayerBetterTransformer,
DetrEncoderLayerBetterTransformer
DetrEncoderLayerBetterTransformer,
DistilBertLayerBetterTransformer,
FSMTEncoderLayerBetterTransformer,
MBartEncoderLayerBetterTransformer,
Expand Down
5 changes: 0 additions & 5 deletions optimum/bettertransformer/models/encoder_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from typing import TYPE_CHECKING

import torch
import torch.nn as nn
Expand All @@ -22,10 +21,6 @@
from .base import BetterTransformerBaseLayer


if TYPE_CHECKING:
from transformers import PretrainedConfig


class AlbertLayerBetterTransformer(BetterTransformerBaseLayer, nn.Module):
def __init__(self, albert_layer, config):
r"""
Expand Down

0 comments on commit 4180f3d

Please sign in to comment.