Skip to content

Commit e70ef84

Browse files
peterjc123Rob Kunkle
authored andcommitted
Some symbol annotation fixes for Windows
Summary: Pull Request resolved: pytorch#10369 Differential Revision: D9300187 Pulled By: ezyang fbshipit-source-id: bf29966ad6aa221332b7232a965fb85e652f866d
1 parent 0359eaa commit e70ef84

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

aten/src/ATen/Registry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class AT_API Registry {
114114
};
115115

116116
template <class SrcType, class ObjectPtrType, class... Args>
117-
class AT_API Registerer {
117+
class Registerer {
118118
public:
119119
Registerer(
120120
const SrcType& key,

aten/src/ATen/function_wrapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def TypedDict(name, attrs, total=True): # type: ignore
119119

120120
# add non-virtual declaration to Tensor.h
121121
TENSOR_METHOD_DECLARATION = CodeTemplate("""\
122-
${return_type} ${api_name}(${method_formals_with_defaults})${const_mark};
122+
AT_API ${return_type} ${api_name}(${method_formals_with_defaults})${const_mark};
123123
""")
124124
# add non-virtual declaration to Tensor.cpp
125125
TENSOR_METHOD_DEFINITION = CodeTemplate("""\

0 commit comments

Comments
 (0)