Add export annotations for functions in c10 (#18464)
authorpeter <peterghost86@gmail.com>
Wed, 27 Mar 2019 14:55:48 +0000 (07:55 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 27 Mar 2019 14:58:58 +0000 (07:58 -0700)
Summary:
Fixes #18461.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/18464

Differential Revision: D14620963

Pulled By: ezyang

fbshipit-source-id: c11f3967de2ac69c7140767c8fe73a85555e9f40

c10/core/TensorTypeId.h

index 3a8648a..8754863 100644 (file)
@@ -35,7 +35,7 @@ class C10_API TensorTypeId final
   friend C10_API std::string toString(TensorTypeId);
 };
 
-std::string toString(TensorTypeId id);
+C10_API std::string toString(TensorTypeId id);
 
 C10_API std::ostream& operator<<(std::ostream&, c10::TensorTypeId);