mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-08 04:24:47 +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:
@@ -5,6 +5,7 @@ import torch
|
||||
|
||||
try:
|
||||
from timm.models.vision_transformer import vit_large_patch16_384 as vit
|
||||
|
||||
MODELS = [vit]
|
||||
HAS_REPO = True
|
||||
except:
|
||||
@@ -19,7 +20,7 @@ from colossalai.testing import clear_cache_before_run, parameterize, spawn
|
||||
|
||||
def get_data() -> Tuple[List, List]:
|
||||
data = torch.rand(1, 3, 384, 384)
|
||||
meta_args = {'x': data}
|
||||
meta_args = {"x": data}
|
||||
return data, meta_args
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user