[misc] Clean up ray compiled graph type hints (#13731)
This commit is contained in:
@@ -114,8 +114,11 @@ try:
|
||||
|
||||
def execute_model_ray(
|
||||
self,
|
||||
scheduler_output: "SchedulerOutput",
|
||||
) -> "ModelRunnerOutput":
|
||||
scheduler_output: Union["SchedulerOutput",
|
||||
Tuple["SchedulerOutput",
|
||||
"IntermediateTensors"]],
|
||||
) -> Union["ModelRunnerOutput", Tuple["SchedulerOutput",
|
||||
"IntermediateTensors"]]:
|
||||
# this method is used to compile ray CG,
|
||||
# and it needs a special logic of self.setup_device_if_necessary()
|
||||
self.setup_device_if_necessary()
|
||||
|
||||
Reference in New Issue
Block a user