mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-10-08 21:13:36 +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:
@@ -4,11 +4,7 @@ from ...registry import meta_patched_function
|
||||
|
||||
|
||||
@meta_patched_function.register(torch.nn.functional.embedding)
|
||||
def torch_nn_functional_embedding(input,
|
||||
weight,
|
||||
padding_idx=None,
|
||||
max_norm=None,
|
||||
norm_type=2.0,
|
||||
scale_grad_by_freq=False,
|
||||
sparse=False):
|
||||
def torch_nn_functional_embedding(
|
||||
input, weight, padding_idx=None, max_norm=None, norm_type=2.0, scale_grad_by_freq=False, sparse=False
|
||||
):
|
||||
return torch.empty(*input.shape, weight.shape[-1], device="meta")
|
||||
|
Reference in New Issue
Block a user