mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-11-24 06:51:14 +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:
@@ -29,16 +29,14 @@ class NetWithRepeatedlyComputedLayers(CheckpointModule):
|
||||
|
||||
|
||||
class DummyDataLoader(DummyDataGenerator):
|
||||
|
||||
def generate(self):
|
||||
data = torch.rand(16, 5)
|
||||
label = torch.randint(low=0, high=2, size=(16,))
|
||||
return data, label
|
||||
|
||||
|
||||
@non_distributed_component_funcs.register(name='repeated_computed_layers')
|
||||
@non_distributed_component_funcs.register(name="repeated_computed_layers")
|
||||
def get_training_components():
|
||||
|
||||
def model_builder(checkpoint=False):
|
||||
return NetWithRepeatedlyComputedLayers(checkpoint)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user