[Chore] Update type annotation of input_ids in model forward (#33063)
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
@@ -603,6 +603,8 @@ class SupportsPP(Protocol):
|
||||
|
||||
def forward(
|
||||
self,
|
||||
input_ids: Tensor | None,
|
||||
positions: Tensor,
|
||||
*,
|
||||
intermediate_tensors: IntermediateTensors | None,
|
||||
) -> IntermediateTensors | None:
|
||||
@@ -631,6 +633,8 @@ class _SupportsPPType(Protocol):
|
||||
|
||||
def forward(
|
||||
self,
|
||||
input_ids: Tensor | None,
|
||||
positions: Tensor,
|
||||
*,
|
||||
intermediate_tensors: IntermediateTensors | None,
|
||||
) -> Tensor | IntermediateTensors: ...
|
||||
|
||||
Reference in New Issue
Block a user