mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-02 17:46:42 +00:00
[misc] update pre-commit and run all files (#4752)
* [misc] update pre-commit * [misc] run pre-commit * [misc] remove useless configuration files * [misc] ignore cuda for clang-format
This commit is contained in:
@@ -9,13 +9,14 @@ from .plugin_base import Plugin
|
||||
|
||||
|
||||
class PipelinePluginBase(Plugin):
|
||||
|
||||
@abstractmethod
|
||||
def execute_pipeline(self,
|
||||
data_iter: Iterator,
|
||||
model: ModelWrapper,
|
||||
criterion: Callable[[Any, Any], torch.Tensor],
|
||||
optimizer: Optional[OptimizerWrapper] = None,
|
||||
return_loss: bool = True,
|
||||
return_outputs: bool = False) -> dict:
|
||||
def execute_pipeline(
|
||||
self,
|
||||
data_iter: Iterator,
|
||||
model: ModelWrapper,
|
||||
criterion: Callable[[Any, Any], torch.Tensor],
|
||||
optimizer: Optional[OptimizerWrapper] = None,
|
||||
return_loss: bool = True,
|
||||
return_outputs: bool = False,
|
||||
) -> dict:
|
||||
pass
|
||||
|
Reference in New Issue
Block a user