Skip to content

Commit

Permalink
Remove Required hint from EncoderOutputDict
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisrall committed Jun 29, 2023
1 parent e1a0dab commit 745375a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ludwig/encoders/types.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
from typing import Required, TypedDict
from typing import TypedDict

import torch


class EncoderOutputDict(TypedDict, total=False):
encoder_output: Required[torch.Tensor]
encoder_output: torch.Tensor
encoder_output_state: torch.Tensor
attentions: torch.Tensor

0 comments on commit 745375a

Please sign in to comment.