Skip to content

Commit

Permalink
embedding decomp
Browse files Browse the repository at this point in the history
  • Loading branch information
samdow committed Jun 15, 2022
1 parent 915aecb commit e072fd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions functorch/_src/eager_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1340,5 +1340,6 @@ def _register_python_decomposition_vmap(decomp):
_register_jit_decomposition(torch.ops.aten.log_sigmoid_forward.default)
_register_jit_decomposition(torch.ops.aten.native_layer_norm_backward.default)
_register_jit_decomposition(torch.ops.aten.native_batch_norm_backward.default, use_python=True)
_register_jit_decomposition(torch.ops.aten.embedding_dense_backward.default)
_register_python_decomposition_vmap(torch.ops.aten.mse_loss_backward.default)
_register_python_decomposition_vmap(torch.ops.aten.addr.default)
1 change: 1 addition & 0 deletions functorch/csrc/DynamicLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,7 @@ TORCH_LIBRARY_IMPL(aten, FT_DYNAMIC_LAYER_FRONT_MODE_KEY, m) {
JVP_DECOMP(log_sigmoid_forward);
JVP_DECOMP(native_layer_norm_backward);
JVP_DECOMP(native_batch_norm_backward);
JVP_DECOMP(embedding_dense_backward);
}


Expand Down

0 comments on commit e072fd0

Please sign in to comment.