-
Notifications
You must be signed in to change notification settings - Fork 814
Export symbols in common.h file
#1888
Export symbols in common.h file
#1888
Conversation
|
All of the MacOS failures should be fixed by #1886. The Windows unittest failure looks new and will require further investigation but is not caused by this PR. According to @mthrok, the |
common.h file
joecummings
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, thanks for doing this!
One possible nit: I usually squash (fold in the mercurial world) unimportant commits like "Fixing imports" so there's less clutter in the commit history. If this isn't common practice w/ torchtext, no worries, but thought I'd mention it.
That's a good point. In torchtext, we generally keep all commits (even unimportant ones related to linting), but when we merge we create a PR against the |
…#1885) * Remove dependency on the torch::jit::script::Module for mobile builds Summary: In order to resolve linkage errors. Specifically when vocab getting build for "mobile" version it can't resolve symbols for torch::jit::script::Module Reviewed By: Nayef211 Differential Revision: D38771271 fbshipit-source-id: 693b656f2a17af9fa5a7a1904742557f902edb55 * Add vocab factory to CMakeLists * Fix type conversion from py::object to STL container (#1887) * Export symbols in `common.h` file (#1888) * Fix type conversion from py::object to STL container * Adding TORCHTEXT_API to expose symbols in common.h * Add common.h import in corresponding cpp file Co-authored-by: Alexander Mazukabzov <[email protected]> Co-authored-by: Nayef Ahmed <[email protected]>
Description
TORCHTEXT_APIto export relevant symbols on Windows platformcommon.has these are used by functions invocab_factory.h