mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-27 04:33:04 +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:
@@ -6,4 +6,4 @@ from ...registry import meta_patched_module
|
||||
@meta_patched_module.register(torch.nn.Embedding)
|
||||
def torch_nn_embedding(self, input):
|
||||
result_shape = input.shape + (self.embedding_dim,)
|
||||
return torch.empty(result_shape, device='meta')
|
||||
return torch.empty(result_shape, device="meta")
|
||||
|
Reference in New Issue
Block a user