forked from pytorch/FBGEMM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create separate targets for training and inference (pytorch#1757)
Summary: Pull Request resolved: pytorch#1757 - Create separate targets for training and inference - Redefine the old `embedding_ops` and `embedding_ops` as an empty target with `exported_defs` pointing to the new split targets Reviewed By: sryap Differential Revision: D45687293 fbshipit-source-id: 2adfaee5d0bdd075164749db9ebe7fc032c626ee
- Loading branch information
1 parent
0a3380f
commit 2ae07d0
Showing
3 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/* | ||
* Copyright (c) Meta Platforms, Inc. and affiliates. | ||
* All rights reserved. | ||
* | ||
* This source code is licensed under the BSD-style license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
/* | ||
This is placeholder code to force compilation and generation of an | ||
`libdeeplearning_fbgemm_fbgemm_gpu_codegen_embedding_ops.so` file, which | ||
allows downstream PyTorch code to contlinue loading the `embedding_ops“ | ||
and `embedding_ops_cpu` (now-)shim targets correctly. | ||
*/ | ||
namespace fbgemm_gpu {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters