Guest User

build-log

a guest
Jul 12th, 2019
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 96.51 KB | None | 0 0
  1. ====================[ Build | sampleC | Debug ]=================================
  2. "C:\Program Files\CMake\bin\cmake.exe" --build F:\sampleC\cmake-build-debug --target sampleC --
  3. Scanning dependencies of target sampleC
  4. [ 50%] Building CXX object CMakeFiles/sampleC.dir/main.cpp.obj
  5. main.cpp
  6. E:\libtorch\include\c10/util/Exception.h(27): warning C4275: non dll-interface class 'std::exception' used as base for dll-interface class 'c10::Error'
  7. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\vcruntime_exception.h(44): note: see declaration of 'std::exception'
  8. E:\libtorch\include\c10/util/Exception.h(27): note: see declaration of 'c10::Error'
  9. E:\libtorch\include\c10/util/Exception.h(28): warning C4251: 'c10::Error::msg_stack_': class 'std::vector<std::string,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'c10::Error'
  10. with
  11. [
  12. _Ty=std::string
  13. ]
  14. E:\libtorch\include\c10/util/Exception.h(28): note: see declaration of 'std::vector<std::string,std::allocator<_Ty>>'
  15. with
  16. [
  17. _Ty=std::string
  18. ]
  19. E:\libtorch\include\c10/util/Exception.h(29): warning C4251: 'c10::Error::backtrace_': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'c10::Error'
  20. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
  21. E:\libtorch\include\c10/util/Exception.h(34): warning C4251: 'c10::Error::msg_': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'c10::Error'
  22. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
  23. E:\libtorch\include\c10/util/Exception.h(35): warning C4251: 'c10::Error::msg_without_backtrace_': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'c10::Error'
  24. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
  25. E:\libtorch\include\c10/core/Allocator.h(21): warning C4251: 'c10::DataPtr::ptr_': class 'c10::detail::UniqueVoidPtr' needs to have dll-interface to be used by clients of class 'c10::DataPtr'
  26. E:\libtorch\include\c10/util/UniqueVoidPtr.h(38): note: see declaration of 'c10::detail::UniqueVoidPtr'
  27. E:\libtorch\include\c10/core/Allocator.h(183): warning C4251: 'c10::InefficientStdFunctionContext::ptr_': class 'std::unique_ptr<void,std::function<void (void *)>>' needs to have dll-interface to be used by clients of struct 'c10::InefficientStdFunctionContext'
  28. E:\libtorch\include\c10/core/Allocator.h(183): note: see declaration of 'std::unique_ptr<void,std::function<void (void *)>>'
  29. E:\libtorch\include\c10/core/TensorTypeIdRegistration.h(32): warning C4251: 'c10::TensorTypeIdCreator::last_id_': struct 'std::atomic<unsigned char>' needs to have dll-interface to be used by clients of class 'c10::TensorTypeIdCreator'
  30. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\xxatomic(162): note: see declaration of 'std::atomic<unsigned char>'
  31. E:\libtorch\include\c10/core/TensorTypeIdRegistration.h(45): warning C4251: 'c10::TensorTypeIdRegistry::registeredTypeIds_': class 'std::unordered_set<c10::TensorTypeId,std::hash<c10::TensorTypeId>,std::equal_to<_Kty>,std::allocator<_Kty>>' needs to have dll-interface to be used by clients of class 'c10::TensorTypeIdRegistry'
  32. with
  33. [
  34. _Kty=c10::TensorTypeId
  35. ]
  36. E:\libtorch\include\c10/core/TensorTypeIdRegistration.h(45): note: see declaration of 'std::unordered_set<c10::TensorTypeId,std::hash<c10::TensorTypeId>,std::equal_to<_Kty>,std::allocator<_Kty>>'
  37. with
  38. [
  39. _Kty=c10::TensorTypeId
  40. ]
  41. E:\libtorch\include\c10/core/TensorTypeIdRegistration.h(46): warning C4251: 'c10::TensorTypeIdRegistry::mutex_': class 'std::mutex' needs to have dll-interface to be used by clients of class 'c10::TensorTypeIdRegistry'
  42. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\mutex(82): note: see declaration of 'std::mutex'
  43. E:\libtorch\include\c10/util/Half-inl.h(168): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
  44. E:\libtorch\include\c10/util/Half-inl.h(171): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
  45. E:\libtorch\include\c10/util/Half-inl.h(174): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
  46. E:\libtorch\include\c10/util/Half-inl.h(177): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
  47. E:\libtorch\include\c10/util/Half-inl.h(181): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
  48. E:\libtorch\include\c10/util/Half-inl.h(184): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
  49. E:\libtorch\include\c10/util/Half-inl.h(187): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
  50. E:\libtorch\include\c10/util/Half-inl.h(190): warning C4244: 'argument': conversion from 'int' to 'float', possible loss of data
  51. E:\libtorch\include\c10/util/Half-inl.h(196): warning C4244: 'argument': conversion from 'int64_t' to 'float', possible loss of data
  52. E:\libtorch\include\c10/util/Half-inl.h(199): warning C4244: 'argument': conversion from 'int64_t' to 'float', possible loss of data
  53. E:\libtorch\include\c10/util/Half-inl.h(202): warning C4244: 'argument': conversion from 'int64_t' to 'float', possible loss of data
  54. E:\libtorch\include\c10/util/Half-inl.h(205): warning C4244: 'argument': conversion from 'int64_t' to 'float', possible loss of data
  55. E:\libtorch\include\c10/util/Half-inl.h(209): warning C4244: 'argument': conversion from 'int64_t' to 'float', possible loss of data
  56. E:\libtorch\include\c10/util/Half-inl.h(212): warning C4244: 'argument': conversion from 'int64_t' to 'float', possible loss of data
  57. E:\libtorch\include\c10/util/Half-inl.h(215): warning C4244: 'argument': conversion from 'int64_t' to 'float', possible loss of data
  58. E:\libtorch\include\c10/util/Half-inl.h(218): warning C4244: 'argument': conversion from 'int64_t' to 'float', possible loss of data
  59. E:\libtorch\include\c10/util/intrusive_ptr.h(58): warning C4251: 'c10::intrusive_ptr_target::refcount_': struct 'std::atomic<unsigned __int64>' needs to have dll-interface to be used by clients of class 'c10::intrusive_ptr_target'
  60. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\xxatomic(162): note: see declaration of 'std::atomic<unsigned __int64>'
  61. E:\libtorch\include\c10/util/intrusive_ptr.h(59): warning C4251: 'c10::intrusive_ptr_target::weakcount_': struct 'std::atomic<unsigned __int64>' needs to have dll-interface to be used by clients of class 'c10::intrusive_ptr_target'
  62. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\xxatomic(162): note: see declaration of 'std::atomic<unsigned __int64>'
  63. E:\libtorch\include\c10/util/intrusive_ptr.h(723): warning C4267: 'return': conversion from 'size_t' to 'uint32_t', possible loss of data
  64. E:\libtorch\include\c10/util/intrusive_ptr.h(757): warning C4267: 'return': conversion from 'size_t' to 'uint32_t', possible loss of data
  65. E:\libtorch\include\c10/core/Storage.h(181): warning C4251: 'c10::Storage::storage_impl_': class 'c10::intrusive_ptr<c10::StorageImpl,c10::detail::intrusive_target_default_null_type<TTarget>>' needs to have dll-interface to be used by clients of struct 'c10::Storage'
  66. with
  67. [
  68. TTarget=c10::StorageImpl
  69. ]
  70. E:\libtorch\include\c10/core/Storage.h(10): note: see declaration of 'c10::intrusive_ptr<c10::StorageImpl,c10::detail::intrusive_target_default_null_type<TTarget>>'
  71. with
  72. [
  73. TTarget=c10::StorageImpl
  74. ]
  75. E:\libtorch\include\c10/util/logging_is_not_google_glog.h(47): warning C4251: 'c10::MessageLogger::stream_': class 'std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of class 'c10::MessageLogger'
  76. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\iosfwd(623): note: see declaration of 'std::basic_stringstream<char,std::char_traits<char>,std::allocator<char>>'
  77. E:\libtorch\include\c10/core/TensorImpl.h(193): warning C4251: 'c10::VariableVersion::version_block_': class 'std::shared_ptr<std::atomic<unsigned int>>' needs to have dll-interface to be used by clients of struct 'c10::VariableVersion'
  78. E:\libtorch\include\c10/core/TensorImpl.h(193): note: see declaration of 'std::shared_ptr<std::atomic<unsigned int>>'
  79. E:\libtorch\include\c10/core/TensorImpl.h(1466): warning C4251: 'c10::TensorImpl::autograd_meta_': class 'std::unique_ptr<c10::AutogradMetaInterface,std::default_delete<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::TensorImpl'
  80. with
  81. [
  82. _Ty=c10::AutogradMetaInterface
  83. ]
  84. E:\libtorch\include\c10/core/TensorImpl.h(893): note: see declaration of 'std::unique_ptr<c10::AutogradMetaInterface,std::default_delete<_Ty>>'
  85. with
  86. [
  87. _Ty=c10::AutogradMetaInterface
  88. ]
  89. E:\libtorch\include\c10/core/TensorImpl.h(1476): warning C4251: 'c10::TensorImpl::sizes_': class 'c10::SmallVector<int64_t,5>' needs to have dll-interface to be used by clients of struct 'c10::TensorImpl'
  90. E:\libtorch\include\c10/core/TensorImpl.h(1476): note: see declaration of 'c10::SmallVector<int64_t,5>'
  91. E:\libtorch\include\c10/core/TensorImpl.h(1477): warning C4251: 'c10::TensorImpl::strides_': class 'c10::SmallVector<int64_t,5>' needs to have dll-interface to be used by clients of struct 'c10::TensorImpl'
  92. E:\libtorch\include\c10/core/TensorImpl.h(1476): note: see declaration of 'c10::SmallVector<int64_t,5>'
  93. E:\libtorch\include\c10/core/TensorImpl.h(1499): warning C4251: 'c10::TensorImpl::device_opt_': class 'c10::optional<c10::Device>' needs to have dll-interface to be used by clients of struct 'c10::TensorImpl'
  94. E:\libtorch\include\c10/core/TensorOptions.h(171): note: see declaration of 'c10::optional<c10::Device>'
  95. E:\libtorch\include\c10/core/TensorImpl.h(1018): warning C4244: 'argument': conversion from 'float' to 'const _Ty', possible loss of data
  96. with
  97. [
  98. _Ty=size_t
  99. ]
  100. E:\libtorch\include\c10/core/TensorImpl.h(1416): warning C4244: 'initializing': conversion from 'int64_t' to 'int', possible loss of data
  101. E:\libtorch\include\ATen/core/LegacyTypeDispatch.h(137): warning C4251: 'at::LegacyTypeDispatch::type_registry': class 'std::unique_ptr<at::Type,at::LegacyTypeDeleter>' needs to have dll-interface to be used by clients of class 'at::LegacyTypeDispatch'
  102. E:\libtorch\include\ATen/core/LegacyTypeDispatch.h(51): note: see declaration of 'std::unique_ptr<at::Type,at::LegacyTypeDeleter>'
  103. E:\libtorch\include\ATen/core/DeprecatedTypePropertiesRegistry.h(27): warning C4251: 'at::DeprecatedTypePropertiesRegistry::registry': class 'std::unique_ptr<at::DeprecatedTypeProperties,std::default_delete<_Ty>>' needs to have dll-interface to be used by clients of class 'at::DeprecatedTypePropertiesRegistry'
  104. with
  105. [
  106. _Ty=at::DeprecatedTypeProperties
  107. ]
  108. E:\libtorch\include\ATen/core/DeprecatedTypePropertiesRegistry.h(24): note: see declaration of 'std::unique_ptr<at::DeprecatedTypeProperties,std::default_delete<_Ty>>'
  109. with
  110. [
  111. _Ty=at::DeprecatedTypeProperties
  112. ]
  113. E:\libtorch\include\ATen/core/Tensor.h(773): warning C4251: 'at::Tensor::impl_': class 'c10::intrusive_ptr<c10::TensorImpl,c10::UndefinedTensorImpl>' needs to have dll-interface to be used by clients of class 'at::Tensor'
  114. E:\libtorch\include\ATen/core/Tensor.h(58): note: see declaration of 'c10::intrusive_ptr<c10::TensorImpl,c10::UndefinedTensorImpl>'
  115. E:\libtorch\include\ATen/core/Tensor.h(774): warning C4522: 'at::Tensor': multiple assignment operators specified
  116. E:\libtorch\include\ATen/core/Tensor.h(801): warning C4251: 'at::WeakTensor::weak_impl_': class 'c10::weak_intrusive_ptr<TTarget,NullType>' needs to have dll-interface to be used by clients of struct 'at::WeakTensor'
  117. with
  118. [
  119. TTarget=c10::TensorImpl,
  120. NullType=c10::UndefinedTensorImpl
  121. ]
  122. E:\libtorch\include\c10/util/intrusive_ptr.h(172): note: see declaration of 'c10::weak_intrusive_ptr<TTarget,NullType>'
  123. with
  124. [
  125. TTarget=c10::TensorImpl,
  126. NullType=c10::UndefinedTensorImpl
  127. ]
  128. E:\libtorch\include\ATen/LegacyTHDispatch.h(122): warning C4251: 'at::LegacyTHDispatch::dispatcher_registry': class 'std::unique_ptr<at::LegacyTHDispatcher,at::LegacyTHDispatcherDeleter>' needs to have dll-interface to be used by clients of class 'at::LegacyTHDispatch'
  129. E:\libtorch\include\ATen/LegacyTHDispatch.h(62): note: see declaration of 'std::unique_ptr<at::LegacyTHDispatcher,at::LegacyTHDispatcherDeleter>'
  130. E:\libtorch\include\c10/core/Stream.h(126): warning C4244: 'argument': conversion from 'unsigned __int64' to 'c10::DeviceIndex', possible loss of data
  131. E:\libtorch\include\c10/core/Stream.h(126): warning C4244: 'argument': conversion from 'unsigned __int64' to 'c10::StreamId', possible loss of data
  132. E:\libtorch\include\ATen/Context.h(134): warning C4251: 'at::Context::generator_registry': class 'std::unique_ptr<at::Generator,std::default_delete<_Ty>>' needs to have dll-interface to be used by clients of class 'at::Context'
  133. with
  134. [
  135. _Ty=at::Generator
  136. ]
  137. E:\libtorch\include\ATen/core/Type.h(77): note: see declaration of 'std::unique_ptr<at::Generator,std::default_delete<_Ty>>'
  138. with
  139. [
  140. _Ty=at::Generator
  141. ]
  142. E:\libtorch\include\ATen/Context.h(151): warning C4251: 'at::Context::thc_init': struct 'std::once_flag' needs to have dll-interface to be used by clients of class 'at::Context'
  143. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\xcall_once.h(18): note: see declaration of 'std::once_flag'
  144. E:\libtorch\include\ATen/Context.h(152): warning C4251: 'at::Context::thh_init': struct 'std::once_flag' needs to have dll-interface to be used by clients of class 'at::Context'
  145. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\xcall_once.h(18): note: see declaration of 'std::once_flag'
  146. E:\libtorch\include\ATen/Context.h(153): warning C4251: 'at::Context::complex_init_': struct 'std::once_flag' needs to have dll-interface to be used by clients of class 'at::Context'
  147. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\xcall_once.h(18): note: see declaration of 'std::once_flag'
  148. E:\libtorch\include\ATen/Context.h(157): warning C4251: 'at::Context::next_id': struct 'std::atomic<unsigned __int64>' needs to have dll-interface to be used by clients of class 'at::Context'
  149. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\xxatomic(162): note: see declaration of 'std::atomic<unsigned __int64>'
  150. E:\libtorch\include\ATen/Context.h(158): warning C4251: 'at::Context::thc_state': class 'std::unique_ptr<THCState,void (__cdecl *)(THCState *)>' needs to have dll-interface to be used by clients of class 'at::Context'
  151. E:\libtorch\include\ATen/detail/CUDAHooksInterface.h(57): note: see declaration of 'std::unique_ptr<THCState,void (__cdecl *)(THCState *)>'
  152. E:\libtorch\include\ATen/Context.h(159): warning C4251: 'at::Context::thh_state': class 'std::unique_ptr<THHState,void (__cdecl *)(THHState *)>' needs to have dll-interface to be used by clients of class 'at::Context'
  153. E:\libtorch\include\ATen/detail/HIPHooksInterface.h(33): note: see declaration of 'std::unique_ptr<THHState,void (__cdecl *)(THHState *)>'
  154. E:\libtorch\include\ATen/TensorGeometry.h(56): warning C4251: 'at::TensorGeometry::sizes_': class 'std::vector<int64_t,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'at::TensorGeometry'
  155. with
  156. [
  157. _Ty=int64_t
  158. ]
  159. E:\libtorch\include\c10/util/typeid.h(597): note: see declaration of 'std::vector<int64_t,std::allocator<_Ty>>'
  160. with
  161. [
  162. _Ty=int64_t
  163. ]
  164. E:\libtorch\include\ATen/TensorGeometry.h(57): warning C4251: 'at::TensorGeometry::strides_': class 'std::vector<int64_t,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'at::TensorGeometry'
  165. with
  166. [
  167. _Ty=int64_t
  168. ]
  169. E:\libtorch\include\c10/util/typeid.h(597): note: see declaration of 'std::vector<int64_t,std::allocator<_Ty>>'
  170. with
  171. [
  172. _Ty=int64_t
  173. ]
  174. E:\libtorch\include\torch/csrc/autograd/variable.h(331): warning C4251: 'torch::autograd::Variable::AutogradMeta::name': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of struct 'torch::autograd::Variable::AutogradMeta'
  175. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
  176. E:\libtorch\include\torch/csrc/autograd/variable.h(334): warning C4251: 'torch::autograd::Variable::AutogradMeta::grad_fn_': class 'std::shared_ptr<torch::autograd::Function>' needs to have dll-interface to be used by clients of struct 'torch::autograd::Variable::AutogradMeta'
  177. E:\libtorch\include\torch/csrc/autograd/edge.h(17): note: see declaration of 'std::shared_ptr<torch::autograd::Function>'
  178. E:\libtorch\include\torch/csrc/autograd/variable.h(335): warning C4251: 'torch::autograd::Variable::AutogradMeta::grad_accumulator_': class 'std::weak_ptr<torch::autograd::Function>' needs to have dll-interface to be used by clients of struct 'torch::autograd::Variable::AutogradMeta'
  179. E:\libtorch\include\torch/csrc/autograd/variable.h(175): note: see declaration of 'std::weak_ptr<torch::autograd::Function>'
  180. E:\libtorch\include\torch/csrc/autograd/variable.h(337): warning C4251: 'torch::autograd::Variable::AutogradMeta::hooks_': class 'std::vector<std::shared_ptr<torch::autograd::FunctionPreHook>,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'torch::autograd::Variable::AutogradMeta'
  181. with
  182. [
  183. _Ty=std::shared_ptr<torch::autograd::FunctionPreHook>
  184. ]
  185. E:\libtorch\include\torch/csrc/autograd/variable.h(283): note: see declaration of 'std::vector<std::shared_ptr<torch::autograd::FunctionPreHook>,std::allocator<_Ty>>'
  186. with
  187. [
  188. _Ty=std::shared_ptr<torch::autograd::FunctionPreHook>
  189. ]
  190. E:\libtorch\include\torch/csrc/autograd/variable.h(353): warning C4251: 'torch::autograd::Variable::AutogradMeta::mutex_': class 'std::mutex' needs to have dll-interface to be used by clients of struct 'torch::autograd::Variable::AutogradMeta'
  191. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\mutex(82): note: see declaration of 'std::mutex'
  192. E:\libtorch\include\ATen/core/ivalue.h(27): warning C4251: 'c10::ivalue::ConstantString::str_': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of struct 'c10::ivalue::ConstantString'
  193. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
  194. E:\libtorch\include\ATen/core/ivalue.h(46): warning C4251: 'c10::ivalue::List<Elem>::elements_': class 'std::vector<T,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::ivalue::List<Elem>'
  195. E:\libtorch\include\c10/util/ArrayRef.h(219): note: see declaration of 'std::vector<T,std::allocator<_Ty>>'
  196. E:\libtorch\include\ATen/core/ivalue.h(72): note: see reference to class template instantiation 'c10::ivalue::List<Elem>' being compiled
  197. E:\libtorch\include\ATen/core/ivalue.h(46): warning C4251: 'c10::ivalue::List<c10::IValue>::elements_': class 'std::vector<Elem,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::ivalue::List<c10::IValue>'
  198. with
  199. [
  200. Elem=c10::IValue,
  201. _Ty=c10::IValue
  202. ]
  203. E:\libtorch\include\ATen/core/ivalue.h(46): note: see declaration of 'std::vector<Elem,std::allocator<_Ty>>'
  204. with
  205. [
  206. Elem=c10::IValue,
  207. _Ty=c10::IValue
  208. ]
  209. E:\libtorch\include\ATen/core/ivalue.h(87): note: see reference to class template instantiation 'c10::ivalue::List<c10::IValue>' being compiled
  210. E:\libtorch\include\ATen/core/ivalue.h(560): warning C4275: non dll-interface class 'std::exception' used as base for dll-interface struct 'c10::ivalue::Future::FutureError'
  211. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\vcruntime_exception.h(44): note: see declaration of 'std::exception'
  212. E:\libtorch\include\ATen/core/ivalue.h(560): note: see declaration of 'c10::ivalue::Future::FutureError'
  213. E:\libtorch\include\ATen/core/ivalue.h(570): warning C4251: 'c10::ivalue::Future::FutureError::error_msg': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of struct 'c10::ivalue::Future::FutureError'
  214. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
  215. E:\libtorch\include\ATen/core/ivalue.h(676): warning C4251: 'c10::ivalue::Future::mutex_': class 'std::mutex' needs to have dll-interface to be used by clients of struct 'c10::ivalue::Future'
  216. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\mutex(82): note: see declaration of 'std::mutex'
  217. E:\libtorch\include\ATen/core/ivalue.h(678): warning C4251: 'c10::ivalue::Future::completed_': struct 'std::atomic<bool>' needs to have dll-interface to be used by clients of struct 'c10::ivalue::Future'
  218. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\xxatomic(162): note: see declaration of 'std::atomic<bool>'
  219. E:\libtorch\include\ATen/core/ivalue.h(679): warning C4251: 'c10::ivalue::Future::callbacks': class 'std::vector<std::function<void (void)>,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::ivalue::Future'
  220. with
  221. [
  222. _Ty=std::function<void (void)>
  223. ]
  224. E:\libtorch\include\ATen/core/ivalue.h(679): note: see declaration of 'std::vector<std::function<void (void)>,std::allocator<_Ty>>'
  225. with
  226. [
  227. _Ty=std::function<void (void)>
  228. ]
  229. E:\libtorch\include\ATen/core/ivalue.h(722): warning C4251: 'c10::ivalue::Object::type_': class 'std::shared_ptr<c10::ClassType>' needs to have dll-interface to be used by clients of struct 'c10::ivalue::Object'
  230. E:\libtorch\include\ATen/core/ivalue.h(687): note: see declaration of 'std::shared_ptr<c10::ClassType>'
  231. E:\libtorch\include\ATen/core/ivalue.h(723): warning C4251: 'c10::ivalue::Object::slots_': class 'std::vector<Elem,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::ivalue::Object'
  232. with
  233. [
  234. Elem=c10::IValue,
  235. _Ty=c10::IValue
  236. ]
  237. E:\libtorch\include\ATen/core/ivalue.h(46): note: see declaration of 'std::vector<Elem,std::allocator<_Ty>>'
  238. with
  239. [
  240. Elem=c10::IValue,
  241. _Ty=c10::IValue
  242. ]
  243. E:\libtorch\include\ATen/core/ivalue.h(728): warning C4251: 'c10::ivalue::GenericDict::elements_': class 'std::unordered_map<c10::IValue,c10::IValue,c10::ivalue::DictHash,c10::ivalue::DictEqualTo,std::allocator<std::pair<const _Kty,_Ty>>>' needs to have dll-interface to be used by clients of struct 'c10::ivalue::GenericDict'
  244. with
  245. [
  246. _Kty=c10::IValue,
  247. _Ty=c10::IValue
  248. ]
  249. E:\libtorch\include\ATen/core/ivalue.h(82): note: see declaration of 'std::unordered_map<c10::IValue,c10::IValue,c10::ivalue::DictHash,c10::ivalue::DictEqualTo,std::allocator<std::pair<const _Kty,_Ty>>>'
  250. with
  251. [
  252. _Kty=c10::IValue,
  253. _Ty=c10::IValue
  254. ]
  255. E:\libtorch\include\ATen/core/ivalue.h(781): warning C4244: 'return': conversion from 'double' to 'float', possible loss of data
  256. E:\libtorch\include\ATen/core/ivalue.h(783): warning C4244: 'return': conversion from 'int64_t' to 'unsigned char', possible loss of data
  257. E:\libtorch\include\ATen/core/ivalue.h(784): warning C4244: 'return': conversion from 'int64_t' to 'signed char', possible loss of data
  258. E:\libtorch\include\ATen/core/ivalue.h(785): warning C4244: 'return': conversion from 'int64_t' to 'unsigned short', possible loss of data
  259. E:\libtorch\include\ATen/core/ivalue.h(786): warning C4244: 'return': conversion from 'int64_t' to 'short', possible loss of data
  260. E:\libtorch\include\ATen/core/ivalue.h(787): warning C4244: 'return': conversion from 'int64_t' to 'int', possible loss of data
  261. E:\libtorch\include\ATen/core/ivalue.h(788): warning C4244: 'return': conversion from 'int64_t' to 'uint32_t', possible loss of data
  262. E:\libtorch\include\ATen/core/ivalue.h(790): warning C4244: 'return': conversion from 'int64_t' to 'c10::detail::_guarded_unsigned_long', possible loss of data
  263. E:\libtorch\include\ATen/core/ivalue.h(46): warning C4251: 'c10::ivalue::List<int64_t>::elements_': class 'std::vector<int64_t,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::ivalue::List<int64_t>'
  264. with
  265. [
  266. _Ty=int64_t
  267. ]
  268. E:\libtorch\include\c10/util/typeid.h(597): note: see declaration of 'std::vector<int64_t,std::allocator<_Ty>>'
  269. with
  270. [
  271. _Ty=int64_t
  272. ]
  273. E:\libtorch\include\ATen/core/ivalue.h(859): note: see reference to class template instantiation 'c10::ivalue::List<int64_t>' being compiled
  274. E:\libtorch\include\ATen/core/ivalue.h(46): warning C4251: 'c10::ivalue::List<double>::elements_': class 'std::vector<T,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::ivalue::List<double>'
  275. with
  276. [
  277. T=double,
  278. _Ty=double
  279. ]
  280. E:\libtorch\include\c10/util/ArrayRef.h(219): note: see declaration of 'std::vector<T,std::allocator<_Ty>>'
  281. with
  282. [
  283. T=double,
  284. _Ty=double
  285. ]
  286. E:\libtorch\include\ATen/core/ivalue.h(873): note: see reference to class template instantiation 'c10::ivalue::List<double>' being compiled
  287. E:\libtorch\include\ATen/core/ivalue.h(46): warning C4251: 'c10::ivalue::List<bool>::elements_': class 'std::vector<bool,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::ivalue::List<bool>'
  288. with
  289. [
  290. _Ty=bool
  291. ]
  292. E:\libtorch\include\ATen/core/ivalue.h(318): note: see declaration of 'std::vector<bool,std::allocator<_Ty>>'
  293. with
  294. [
  295. _Ty=bool
  296. ]
  297. E:\libtorch\include\ATen/core/ivalue.h(880): note: see reference to class template instantiation 'c10::ivalue::List<bool>' being compiled
  298. E:\libtorch\include\ATen/core/ivalue.h(46): warning C4251: 'c10::ivalue::List<at::Tensor>::elements_': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::ivalue::List<at::Tensor>'
  299. with
  300. [
  301. _Ty=at::Tensor
  302. ]
  303. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  304. with
  305. [
  306. _Ty=at::Tensor
  307. ]
  308. E:\libtorch\include\ATen/core/ivalue.h(887): note: see reference to class template instantiation 'c10::ivalue::List<at::Tensor>' being compiled
  309. E:\libtorch\include\ATen/core/ivalue.h(1003): warning C4244: 'argument': conversion from 'int64_t' to 'const _Kty', possible loss of data
  310. with
  311. [
  312. _Kty=int
  313. ]
  314. E:\libtorch\include\ATen/core/jit_type.h(66): warning C4251: 'std::enable_shared_from_this<c10::Type>::_Wptr': class 'std::weak_ptr<_Ty>' needs to have dll-interface to be used by clients of class 'std::enable_shared_from_this<c10::Type>'
  315. with
  316. [
  317. _Ty=c10::Type
  318. ]
  319. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\memory(2029): note: see declaration of 'std::weak_ptr<_Ty>'
  320. with
  321. [
  322. _Ty=c10::Type
  323. ]
  324. E:\libtorch\include\ATen/core/jit_type.h(227): warning C4251: 'c10::SingleElementType<c10::TypeKind::OptionalType,c10::OptionalType>::elem': class 'std::shared_ptr<c10::Type>' needs to have dll-interface to be used by clients of struct 'c10::SingleElementType<c10::TypeKind::OptionalType,c10::OptionalType>'
  325. E:\libtorch\include\ATen/core/jit_type.h(64): note: see declaration of 'std::shared_ptr<c10::Type>'
  326. E:\libtorch\include\ATen/core/jit_type.h(477): warning C4251: 'c10::VaryingShape::size_': class 'c10::optional<size_t>' needs to have dll-interface to be used by clients of struct 'c10::VaryingShape'
  327. E:\libtorch\include\ATen/core/jit_type.h(428): note: see declaration of 'c10::optional<size_t>'
  328. E:\libtorch\include\ATen/core/jit_type.h(478): warning C4251: 'c10::VaryingShape::dims_': class 'std::vector<c10::optional<int64_t>,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::VaryingShape'
  329. with
  330. [
  331. _Ty=c10::optional<int64_t>
  332. ]
  333. E:\libtorch\include\ATen/core/jit_type.h(478): note: see declaration of 'std::vector<c10::optional<int64_t>,std::allocator<_Ty>>'
  334. with
  335. [
  336. _Ty=c10::optional<int64_t>
  337. ]
  338. E:\libtorch\include\ATen/core/jit_type.h(571): warning C4251: 'c10::ProfiledTensorType::scalar_type_': class 'c10::optional<c10::ScalarType>' needs to have dll-interface to be used by clients of struct 'c10::ProfiledTensorType'
  339. E:\libtorch\include\c10/core/ScalarType.h(141): note: see declaration of 'c10::optional<c10::ScalarType>'
  340. E:\libtorch\include\ATen/core/jit_type.h(572): warning C4251: 'c10::ProfiledTensorType::device_': class 'c10::optional<c10::Device>' needs to have dll-interface to be used by clients of struct 'c10::ProfiledTensorType'
  341. E:\libtorch\include\c10/core/TensorOptions.h(171): note: see declaration of 'c10::optional<c10::Device>'
  342. E:\libtorch\include\ATen/core/jit_type.h(575): warning C4251: 'c10::ProfiledTensorType::requires_grad_': class 'c10::optional<bool>' needs to have dll-interface to be used by clients of struct 'c10::ProfiledTensorType'
  343. E:\libtorch\include\c10/core/TensorOptions.h(224): note: see declaration of 'c10::optional<bool>'
  344. E:\libtorch\include\ATen/core/jit_type.h(533): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
  345. E:\libtorch\include\ATen/core/jit_type.h(537): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
  346. E:\libtorch\include\ATen/core/jit_type.h(682): warning C4251: 'c10::CompleteTensorType::sizes_': class 'std::vector<int64_t,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::CompleteTensorType'
  347. with
  348. [
  349. _Ty=int64_t
  350. ]
  351. E:\libtorch\include\c10/util/typeid.h(597): note: see declaration of 'std::vector<int64_t,std::allocator<_Ty>>'
  352. with
  353. [
  354. _Ty=int64_t
  355. ]
  356. E:\libtorch\include\ATen/core/jit_type.h(683): warning C4251: 'c10::CompleteTensorType::strides_': class 'std::vector<int64_t,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::CompleteTensorType'
  357. with
  358. [
  359. _Ty=int64_t
  360. ]
  361. E:\libtorch\include\c10/util/typeid.h(597): note: see declaration of 'std::vector<int64_t,std::allocator<_Ty>>'
  362. with
  363. [
  364. _Ty=int64_t
  365. ]
  366. E:\libtorch\include\ATen/core/jit_type.h(688): warning C4251: 'c10::SingleElementType<c10::TypeKind::ListType,c10::ListType>::elem': class 'std::shared_ptr<c10::Type>' needs to have dll-interface to be used by clients of struct 'c10::SingleElementType<c10::TypeKind::ListType,c10::ListType>'
  367. E:\libtorch\include\ATen/core/jit_type.h(64): note: see declaration of 'std::shared_ptr<c10::Type>'
  368. E:\libtorch\include\ATen/core/jit_type.h(801): warning C4251: 'c10::DictType::types': class 'std::vector<c10::TypePtr,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::DictType'
  369. with
  370. [
  371. _Ty=c10::TypePtr
  372. ]
  373. E:\libtorch\include\ATen/core/jit_type.h(162): note: see declaration of 'std::vector<c10::TypePtr,std::allocator<_Ty>>'
  374. with
  375. [
  376. _Ty=c10::TypePtr
  377. ]
  378. E:\libtorch\include\ATen/core/jit_type.h(808): warning C4251: 'c10::SingleElementType<c10::TypeKind::FutureType,c10::FutureType>::elem': class 'std::shared_ptr<c10::Type>' needs to have dll-interface to be used by clients of struct 'c10::SingleElementType<c10::TypeKind::FutureType,c10::FutureType>'
  379. E:\libtorch\include\ATen/core/jit_type.h(64): note: see declaration of 'std::shared_ptr<c10::Type>'
  380. E:\libtorch\include\ATen/core/jit_type.h(941): warning C4251: 'c10::TupleType::elements_': class 'std::vector<c10::TypePtr,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::TupleType'
  381. with
  382. [
  383. _Ty=c10::TypePtr
  384. ]
  385. E:\libtorch\include\ATen/core/jit_type.h(162): note: see declaration of 'std::vector<c10::TypePtr,std::allocator<_Ty>>'
  386. with
  387. [
  388. _Ty=c10::TypePtr
  389. ]
  390. E:\libtorch\include\ATen/core/jit_type.h(943): warning C4251: 'c10::TupleType::names_': class 'c10::optional<std::vector<std::string,std::allocator<_Ty>>>' needs to have dll-interface to be used by clients of struct 'c10::TupleType'
  391. with
  392. [
  393. _Ty=std::string
  394. ]
  395. E:\libtorch\include\ATen/core/jit_type.h(836): note: see declaration of 'c10::optional<std::vector<std::string,std::allocator<_Ty>>>'
  396. with
  397. [
  398. _Ty=std::string
  399. ]
  400. E:\libtorch\include\ATen/core/jit_type.h(1450): warning C4251: 'c10::ClassType::qualifiedName_': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of struct 'c10::ClassType'
  401. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
  402. E:\libtorch\include\ATen/core/jit_type.h(1454): warning C4251: 'c10::ClassType::qualifier_': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of struct 'c10::ClassType'
  403. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
  404. E:\libtorch\include\ATen/core/jit_type.h(1456): warning C4251: 'c10::ClassType::basename_': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of struct 'c10::ClassType'
  405. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
  406. E:\libtorch\include\ATen/core/jit_type.h(1464): warning C4251: 'c10::ClassType::attributeNames_': class 'std::vector<std::string,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::ClassType'
  407. with
  408. [
  409. _Ty=std::string
  410. ]
  411. E:\libtorch\include\c10/util/Exception.h(28): note: see declaration of 'std::vector<std::string,std::allocator<_Ty>>'
  412. with
  413. [
  414. _Ty=std::string
  415. ]
  416. E:\libtorch\include\ATen/core/jit_type.h(1465): warning C4251: 'c10::ClassType::attributeTypes_': class 'std::vector<c10::TypePtr,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'c10::ClassType'
  417. with
  418. [
  419. _Ty=c10::TypePtr
  420. ]
  421. E:\libtorch\include\ATen/core/jit_type.h(162): note: see declaration of 'std::vector<c10::TypePtr,std::allocator<_Ty>>'
  422. with
  423. [
  424. _Ty=c10::TypePtr
  425. ]
  426. E:\libtorch\include\ATen/core/jit_type.h(1467): warning C4251: 'c10::ClassType::compilation_unit_': class 'std::shared_ptr<torch::jit::script::CompilationUnit>' needs to have dll-interface to be used by clients of struct 'c10::ClassType'
  427. E:\libtorch\include\ATen/core/jit_type.h(1316): note: see declaration of 'std::shared_ptr<torch::jit::script::CompilationUnit>'
  428. E:\libtorch\include\torch/csrc/jit/scope.h(22): warning C4251: 'torch::jit::Scope::parent_': class 'c10::intrusive_ptr<torch::jit::Scope,c10::detail::intrusive_target_default_null_type<TTarget>>' needs to have dll-interface to be used by clients of struct 'torch::jit::Scope'
  429. with
  430. [
  431. TTarget=torch::jit::Scope
  432. ]
  433. E:\libtorch\include\torch/csrc/jit/scope.h(17): note: see declaration of 'c10::intrusive_ptr<torch::jit::Scope,c10::detail::intrusive_target_default_null_type<TTarget>>'
  434. with
  435. [
  436. TTarget=torch::jit::Scope
  437. ]
  438. E:\libtorch\include\torch/csrc/jit/constants.h(20): warning C4275: non dll-interface class 'std::runtime_error' used as base for dll-interface struct 'torch::jit::constant_not_supported_error'
  439. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\stdexcept(157): note: see declaration of 'std::runtime_error'
  440. E:\libtorch\include\torch/csrc/jit/constants.h(20): note: see declaration of 'torch::jit::constant_not_supported_error'
  441. E:\libtorch\include\torch/csrc/jit/attributes.h(87): warning C4275: non dll-interface struct 'torch::jit::AttributeValue' used as base for dll-interface struct 'torch::jit::GraphAttr'
  442. E:\libtorch\include\torch/csrc/jit/attributes.h(25): note: see declaration of 'torch::jit::AttributeValue'
  443. E:\libtorch\include\torch/csrc/jit/attributes.h(87): note: see declaration of 'torch::jit::GraphAttr'
  444. E:\libtorch\include\torch/csrc/jit/attributes.h(101): warning C4251: 'torch::jit::GraphAttr::value_': class 'std::shared_ptr<torch::jit::Graph>' needs to have dll-interface to be used by clients of struct 'torch::jit::GraphAttr'
  445. E:\libtorch\include\torch/csrc/jit/attributes.h(88): note: see declaration of 'std::shared_ptr<torch::jit::Graph>'
  446. E:\libtorch\include\torch/csrc/jit/attributes.h(104): warning C4275: non dll-interface struct 'torch::jit::AttributeValue' used as base for dll-interface struct 'torch::jit::GraphsAttr'
  447. E:\libtorch\include\torch/csrc/jit/attributes.h(25): note: see declaration of 'torch::jit::AttributeValue'
  448. E:\libtorch\include\torch/csrc/jit/attributes.h(104): note: see declaration of 'torch::jit::GraphsAttr'
  449. E:\libtorch\include\torch/csrc/jit/attributes.h(118): warning C4251: 'torch::jit::GraphsAttr::value_': class 'std::vector<std::shared_ptr<torch::jit::Graph>,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'torch::jit::GraphsAttr'
  450. with
  451. [
  452. _Ty=std::shared_ptr<torch::jit::Graph>
  453. ]
  454. E:\libtorch\include\torch/csrc/jit/attributes.h(105): note: see declaration of 'std::vector<std::shared_ptr<torch::jit::Graph>,std::allocator<_Ty>>'
  455. with
  456. [
  457. _Ty=std::shared_ptr<torch::jit::Graph>
  458. ]
  459. E:\libtorch\include\torch/csrc/jit/ir.h(246): warning C4251: 'torch::jit::Node::inputs_': class 'std::vector<torch::jit::Value *,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'torch::jit::Node'
  460. with
  461. [
  462. _Ty=torch::jit::Value *
  463. ]
  464. E:\libtorch\include\torch/csrc/jit/ir.h(141): note: see declaration of 'std::vector<torch::jit::Value *,std::allocator<_Ty>>'
  465. with
  466. [
  467. _Ty=torch::jit::Value *
  468. ]
  469. E:\libtorch\include\torch/csrc/jit/ir.h(247): warning C4251: 'torch::jit::Node::outputs_': class 'std::vector<torch::jit::Value *,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'torch::jit::Node'
  470. with
  471. [
  472. _Ty=torch::jit::Value *
  473. ]
  474. E:\libtorch\include\torch/csrc/jit/ir.h(141): note: see declaration of 'std::vector<torch::jit::Value *,std::allocator<_Ty>>'
  475. with
  476. [
  477. _Ty=torch::jit::Value *
  478. ]
  479. E:\libtorch\include\torch/csrc/jit/ir.h(249): warning C4251: 'torch::jit::Node::blocks_': class 'std::vector<torch::jit::Block *,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'torch::jit::Node'
  480. with
  481. [
  482. _Ty=torch::jit::Block *
  483. ]
  484. E:\libtorch\include\torch/csrc/jit/ir.h(249): note: see declaration of 'std::vector<torch::jit::Block *,std::allocator<_Ty>>'
  485. with
  486. [
  487. _Ty=torch::jit::Block *
  488. ]
  489. E:\libtorch\include\torch/csrc/jit/ir.h(252): warning C4251: 'torch::jit::Node::source_location_': class 'std::shared_ptr<torch::jit::SourceLocation>' needs to have dll-interface to be used by clients of struct 'torch::jit::Node'
  490. E:\libtorch\include\torch/csrc/jit/ir.h(252): note: see declaration of 'std::shared_ptr<torch::jit::SourceLocation>'
  491. E:\libtorch\include\torch/csrc/jit/ir.h(253): warning C4251: 'torch::jit::Node::scope_': class 'c10::intrusive_ptr<torch::jit::Scope,c10::detail::intrusive_target_default_null_type<TTarget>>' needs to have dll-interface to be used by clients of struct 'torch::jit::Node'
  492. with
  493. [
  494. TTarget=torch::jit::Scope
  495. ]
  496. E:\libtorch\include\torch/csrc/jit/scope.h(17): note: see declaration of 'c10::intrusive_ptr<torch::jit::Scope,c10::detail::intrusive_target_default_null_type<TTarget>>'
  497. with
  498. [
  499. TTarget=torch::jit::Scope
  500. ]
  501. E:\libtorch\include\torch/csrc/jit/ir.h(756): warning C4251: 'torch::jit::Node::values_': class 'std::vector<torch::jit::Node::AVPtr,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'torch::jit::Node'
  502. with
  503. [
  504. _Ty=torch::jit::Node::AVPtr
  505. ]
  506. E:\libtorch\include\torch/csrc/jit/ir.h(756): note: see declaration of 'std::vector<torch::jit::Node::AVPtr,std::allocator<_Ty>>'
  507. with
  508. [
  509. _Ty=torch::jit::Node::AVPtr
  510. ]
  511. E:\libtorch\include\torch/csrc/jit/tracing_state.h(30): warning C4251: 'std::enable_shared_from_this<torch::jit::tracer::TracingState>::_Wptr': class 'std::weak_ptr<_Ty>' needs to have dll-interface to be used by clients of class 'std::enable_shared_from_this<torch::jit::tracer::TracingState>'
  512. with
  513. [
  514. _Ty=torch::jit::tracer::TracingState
  515. ]
  516. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\memory(2029): note: see declaration of 'std::weak_ptr<_Ty>'
  517. with
  518. [
  519. _Ty=torch::jit::tracer::TracingState
  520. ]
  521. E:\libtorch\include\torch/csrc/jit/tracing_state.h(58): warning C4251: 'torch::jit::tracer::TracingState::env_stack': class 'std::vector<torch::jit::tracer::TracingState::TracingEnvironmentFrame,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'torch::jit::tracer::TracingState'
  522. with
  523. [
  524. _Ty=torch::jit::tracer::TracingState::TracingEnvironmentFrame
  525. ]
  526. E:\libtorch\include\torch/csrc/jit/tracing_state.h(56): note: see declaration of 'std::vector<torch::jit::tracer::TracingState::TracingEnvironmentFrame,std::allocator<_Ty>>'
  527. with
  528. [
  529. _Ty=torch::jit::tracer::TracingState::TracingEnvironmentFrame
  530. ]
  531. E:\libtorch\include\torch/csrc/jit/tracing_state.h(59): warning C4251: 'torch::jit::tracer::TracingState::graph': class 'std::shared_ptr<torch::jit::Graph>' needs to have dll-interface to be used by clients of struct 'torch::jit::tracer::TracingState'
  532. E:\libtorch\include\torch/csrc/jit/attributes.h(88): note: see declaration of 'std::shared_ptr<torch::jit::Graph>'
  533. E:\libtorch\include\torch/csrc/jit/tracing_state.h(63): warning C4251: 'torch::jit::tracer::TracingState::lookup_var_name_fn': class 'std::function<std::string (const torch::autograd::Variable &)>' needs to have dll-interface to be used by clients of struct 'torch::jit::tracer::TracingState'
  534. E:\libtorch\include\torch/csrc/jit/tracing_state.h(62): note: see declaration of 'std::function<std::string (const torch::autograd::Variable &)>'
  535. E:\libtorch\include\torch/csrc/jit/tracing_state.h(159): warning C4251: 'torch::jit::tracer::NoWarn::state': class 'std::shared_ptr<_Ty>' needs to have dll-interface to be used by clients of struct 'torch::jit::tracer::NoWarn'
  536. with
  537. [
  538. _Ty=torch::jit::tracer::TracingState
  539. ]
  540. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\memory(2019): note: see declaration of 'std::shared_ptr<_Ty>'
  541. with
  542. [
  543. _Ty=torch::jit::tracer::TracingState
  544. ]
  545. E:\libtorch\include\torch/csrc/jit/tracer.h(169): warning C4273: 'torch::jit::tracer::addInputs': inconsistent dll linkage
  546. E:\libtorch\include\torch/csrc/jit/tracer.h(154): note: see previous definition of 'addInputs'
  547. E:\libtorch\include\torch/csrc/jit/tracer.h(176): warning C4273: 'torch::jit::tracer::addInputs': inconsistent dll linkage
  548. E:\libtorch\include\torch/csrc/jit/tracer.h(160): note: see previous definition of 'addInputs'
  549. E:\libtorch\include\torch\csrc\api\include\torch/data/samplers/distributed.h(96): warning C4251: 'torch::data::samplers::DistributedRandomSampler::all_indices_': class 'std::vector<T,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::data::samplers::DistributedRandomSampler'
  550. with
  551. [
  552. T=size_t,
  553. _Ty=size_t
  554. ]
  555. E:\libtorch\include\c10/util/ArrayRef.h(219): note: see declaration of 'std::vector<T,std::allocator<_Ty>>'
  556. with
  557. [
  558. T=size_t,
  559. _Ty=size_t
  560. ]
  561. E:\libtorch\include\torch\csrc\api\include\torch/data/samplers/distributed.h(129): warning C4251: 'torch::data::samplers::DistributedSequentialSampler::all_indices_': class 'std::vector<T,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::data::samplers::DistributedSequentialSampler'
  562. with
  563. [
  564. T=size_t,
  565. _Ty=size_t
  566. ]
  567. E:\libtorch\include\c10/util/ArrayRef.h(219): note: see declaration of 'std::vector<T,std::allocator<_Ty>>'
  568. with
  569. [
  570. T=size_t,
  571. _Ty=size_t
  572. ]
  573. E:\libtorch\include\torch\csrc\api\include\torch/serialize/input-archive.h(89): warning C4251: 'torch::serialize::InputArchive::module_': class 'std::shared_ptr<torch::jit::script::Module>' needs to have dll-interface to be used by clients of class 'torch::serialize::InputArchive'
  574. E:\libtorch\include\torch/csrc/jit/tracer.h(96): note: see declaration of 'std::shared_ptr<torch::jit::script::Module>'
  575. E:\libtorch\include\torch\csrc\api\include\torch/serialize/output-archive.h(66): warning C4251: 'torch::serialize::OutputArchive::module_': class 'std::shared_ptr<torch::jit::script::Module>' needs to have dll-interface to be used by clients of class 'torch::serialize::OutputArchive'
  576. E:\libtorch\include\torch/csrc/jit/tracer.h(96): note: see declaration of 'std::shared_ptr<torch::jit::script::Module>'
  577. E:\libtorch\include\torch/csrc/jit/script/lexer.h(356): warning C4251: 'torch::jit::script::SharedParserData::head': class 'std::unique_ptr<torch::jit::script::TokenTrie,std::default_delete<_Ty>>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::SharedParserData'
  578. with
  579. [
  580. _Ty=torch::jit::script::TokenTrie
  581. ]
  582. E:\libtorch\include\torch/csrc/jit/script/lexer.h(126): note: see declaration of 'std::unique_ptr<torch::jit::script::TokenTrie,std::default_delete<_Ty>>'
  583. with
  584. [
  585. _Ty=torch::jit::script::TokenTrie
  586. ]
  587. E:\libtorch\include\torch/csrc/jit/script/lexer.h(382): warning C4267: 'argument': conversion from 'size_t' to '_Ty', possible loss of data
  588. with
  589. [
  590. _Ty=int32_t
  591. ]
  592. E:\libtorch\include\torch/csrc/jit/script/lexer.h(458): warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
  593. E:\libtorch\include\torch/csrc/jit/argument_spec.h(168): warning C4251: 'torch::jit::ArgumentSpecCreator::instructions_': class 'std::vector<torch::jit::ArgumentSpecCreator::Inst,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'torch::jit::ArgumentSpecCreator'
  594. with
  595. [
  596. _Ty=torch::jit::ArgumentSpecCreator::Inst
  597. ]
  598. E:\libtorch\include\torch/csrc/jit/argument_spec.h(168): note: see declaration of 'std::vector<torch::jit::ArgumentSpecCreator::Inst,std::allocator<_Ty>>'
  599. with
  600. [
  601. _Ty=torch::jit::ArgumentSpecCreator::Inst
  602. ]
  603. E:\libtorch\include\torch/csrc/jit/argument_spec.h(201): warning C4267: 'initializing': conversion from 'size_t' to 'int32_t', possible loss of data
  604. E:\libtorch\include\torch/csrc/jit/argument_spec.h(204): warning C4267: 'initializing': conversion from 'size_t' to 'int32_t', possible loss of data
  605. E:\libtorch\include\torch/csrc/jit/argument_spec.h(204): warning C4267: 'initializing': conversion from 'size_t' to 'const int32_t', possible loss of data
  606. E:\libtorch\include\torch/csrc/jit/argument_spec.h(209): warning C4244: '+=': conversion from 'int64_t' to 'int32_t', possible loss of data
  607. E:\libtorch\include\torch/csrc/jit/argument_spec.h(229): warning C4244: '+=': conversion from 'int64_t' to 'int32_t', possible loss of data
  608. E:\libtorch\include\torch/csrc/jit/argument_spec.h(391): warning C4267: 'argument': conversion from 'size_t' to 'const int', possible loss of data
  609. E:\libtorch\include\torch/csrc/jit/interpreter.h(44): warning C4251: 'torch::jit::Code::pImpl': class 'std::shared_ptr<torch::jit::CodeImpl>' needs to have dll-interface to be used by clients of struct 'torch::jit::Code'
  610. E:\libtorch\include\torch/csrc/jit/interpreter.h(44): note: see declaration of 'std::shared_ptr<torch::jit::CodeImpl>'
  611. E:\libtorch\include\torch/csrc/jit/graph_executor.h(41): warning C4251: 'torch::jit::GraphExecutor::pImpl': class 'std::shared_ptr<torch::jit::GraphExecutorImpl>' needs to have dll-interface to be used by clients of struct 'torch::jit::GraphExecutor'
  612. E:\libtorch\include\torch/csrc/jit/graph_executor.h(41): note: see declaration of 'std::shared_ptr<torch::jit::GraphExecutorImpl>'
  613. E:\libtorch\include\torch/csrc/jit/script/compilation_unit.h(160): warning C4251: 'torch::jit::script::Function::name_': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::Function'
  614. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
  615. E:\libtorch\include\torch/csrc/jit/script/compilation_unit.h(161): warning C4251: 'torch::jit::script::Function::graph_': class 'std::shared_ptr<torch::jit::Graph>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::Function'
  616. E:\libtorch\include\torch/csrc/jit/attributes.h(88): note: see declaration of 'std::shared_ptr<torch::jit::Graph>'
  617. E:\libtorch\include\torch/csrc/jit/script/compilation_unit.h(166): warning C4251: 'torch::jit::script::Function::executor_init_': struct 'std::once_flag' needs to have dll-interface to be used by clients of struct 'torch::jit::script::Function'
  618. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\xcall_once.h(18): note: see declaration of 'std::once_flag'
  619. E:\libtorch\include\torch/csrc/jit/script/compilation_unit.h(171): warning C4251: 'torch::jit::script::Function::function_creator_': class 'std::function<void (torch::jit::script::Function &)>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::Function'
  620. E:\libtorch\include\torch/csrc/jit/script/compilation_unit.h(45): note: see declaration of 'std::function<void (torch::jit::script::Function &)>'
  621. E:\libtorch\include\torch/csrc/jit/script/compilation_unit.h(176): warning C4251: 'torch::jit::script::Function::schema_': class 'std::unique_ptr<c10::FunctionSchema,std::default_delete<_Ty>>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::Function'
  622. with
  623. [
  624. _Ty=c10::FunctionSchema
  625. ]
  626. E:\libtorch\include\torch/csrc/jit/script/compilation_unit.h(176): note: see declaration of 'std::unique_ptr<c10::FunctionSchema,std::default_delete<_Ty>>'
  627. with
  628. [
  629. _Ty=c10::FunctionSchema
  630. ]
  631. E:\libtorch\include\torch/csrc/jit/script/compilation_unit.h(266): warning C4251: 'torch::jit::script::CompilationUnit::functions_': class 'std::vector<std::shared_ptr<torch::jit::script::Function>,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::CompilationUnit'
  632. with
  633. [
  634. _Ty=std::shared_ptr<torch::jit::script::Function>
  635. ]
  636. E:\libtorch\include\torch/csrc/jit/script/compilation_unit.h(228): note: see declaration of 'std::vector<std::shared_ptr<torch::jit::script::Function>,std::allocator<_Ty>>'
  637. with
  638. [
  639. _Ty=std::shared_ptr<torch::jit::script::Function>
  640. ]
  641. E:\libtorch\include\torch/csrc/jit/script/compilation_unit.h(268): warning C4251: 'torch::jit::script::CompilationUnit::dict_': class 'std::unordered_map<std::string,size_t,std::hash<std::string>,std::equal_to<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::CompilationUnit'
  642. with
  643. [
  644. _Kty=std::string,
  645. _Ty=size_t
  646. ]
  647. E:\libtorch\include\torch/csrc/jit/script/compilation_unit.h(268): note: see declaration of 'std::unordered_map<std::string,size_t,std::hash<std::string>,std::equal_to<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>'
  648. with
  649. [
  650. _Kty=std::string,
  651. _Ty=size_t
  652. ]
  653. E:\libtorch\include\torch/csrc/jit/script/module.h(123): warning C4251: 'torch::jit::script::Method::function_': class 'std::shared_ptr<torch::jit::script::Function>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::Method'
  654. E:\libtorch\include\ATen/core/jit_type.h(1389): note: see declaration of 'std::shared_ptr<torch::jit::script::Function>'
  655. E:\libtorch\include\torch/csrc/jit/script/module.h(127): warning C4251: 'torch::jit::script::Method::initial_ivalues_': class 'std::vector<torch::jit::script::Slot,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::Method'
  656. with
  657. [
  658. _Ty=torch::jit::script::Slot
  659. ]
  660. E:\libtorch\include\torch/csrc/jit/script/module.h(87): note: see declaration of 'std::vector<torch::jit::script::Slot,std::allocator<_Ty>>'
  661. with
  662. [
  663. _Ty=torch::jit::script::Slot
  664. ]
  665. E:\libtorch\include\torch/csrc/jit/script/module.h(128): warning C4251: 'torch::jit::script::Method::schema_': struct 'c10::FunctionSchema' needs to have dll-interface to be used by clients of struct 'torch::jit::script::Method'
  666. E:\libtorch\include\ATen/core/function_schema.h(96): note: see declaration of 'c10::FunctionSchema'
  667. E:\libtorch\include\torch/csrc/jit/script/module.h(543): warning C4251: 'torch::jit::script::Module::modules_': class 'std::vector<std::shared_ptr<torch::jit::script::Module>,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::Module'
  668. with
  669. [
  670. _Ty=std::shared_ptr<torch::jit::script::Module>
  671. ]
  672. E:\libtorch\include\torch/csrc/jit/script/module.h(543): note: see declaration of 'std::vector<std::shared_ptr<torch::jit::script::Module>,std::allocator<_Ty>>'
  673. with
  674. [
  675. _Ty=std::shared_ptr<torch::jit::script::Module>
  676. ]
  677. E:\libtorch\include\torch/csrc/jit/script/module.h(544): warning C4251: 'torch::jit::script::Module::parameters_': class 'std::vector<torch::jit::script::Slot,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::Module'
  678. with
  679. [
  680. _Ty=torch::jit::script::Slot
  681. ]
  682. E:\libtorch\include\torch/csrc/jit/script/module.h(87): note: see declaration of 'std::vector<torch::jit::script::Slot,std::allocator<_Ty>>'
  683. with
  684. [
  685. _Ty=torch::jit::script::Slot
  686. ]
  687. E:\libtorch\include\torch/csrc/jit/script/module.h(545): warning C4251: 'torch::jit::script::Module::attributes_': class 'std::vector<torch::jit::script::Slot,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::Module'
  688. with
  689. [
  690. _Ty=torch::jit::script::Slot
  691. ]
  692. E:\libtorch\include\torch/csrc/jit/script/module.h(87): note: see declaration of 'std::vector<torch::jit::script::Slot,std::allocator<_Ty>>'
  693. with
  694. [
  695. _Ty=torch::jit::script::Slot
  696. ]
  697. E:\libtorch\include\torch/csrc/jit/script/module.h(546): warning C4251: 'torch::jit::script::Module::methods_': class 'std::vector<std::unique_ptr<torch::jit::script::Method,std::default_delete<_Ty>>,std::allocator<std::unique_ptr<_Ty,std::default_delete<_Ty>>>>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::Module'
  698. with
  699. [
  700. _Ty=torch::jit::script::Method
  701. ]
  702. E:\libtorch\include\torch/csrc/jit/script/module.h(276): note: see declaration of 'std::vector<std::unique_ptr<torch::jit::script::Method,std::default_delete<_Ty>>,std::allocator<std::unique_ptr<_Ty,std::default_delete<_Ty>>>>'
  703. with
  704. [
  705. _Ty=torch::jit::script::Method
  706. ]
  707. E:\libtorch\include\torch/csrc/jit/script/module.h(548): warning C4251: 'torch::jit::script::Module::dict_': class 'std::unordered_map<std::string,torch::jit::script::Module::Entry,std::hash<std::string>,std::equal_to<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::Module'
  708. with
  709. [
  710. _Kty=std::string,
  711. _Ty=torch::jit::script::Module::Entry
  712. ]
  713. E:\libtorch\include\torch/csrc/jit/script/module.h(548): note: see declaration of 'std::unordered_map<std::string,torch::jit::script::Module::Entry,std::hash<std::string>,std::equal_to<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>'
  714. with
  715. [
  716. _Kty=std::string,
  717. _Ty=torch::jit::script::Module::Entry
  718. ]
  719. E:\libtorch\include\torch/csrc/jit/script/module.h(549): warning C4251: 'torch::jit::script::Module::name_': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::Module'
  720. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
  721. E:\libtorch\include\torch/csrc/jit/script/module.h(551): warning C4251: 'torch::jit::script::Module::module_value_': class 'c10::intrusive_ptr<c10::ivalue::Object,c10::detail::intrusive_target_default_null_type<TTarget>>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::Module'
  722. with
  723. [
  724. TTarget=c10::ivalue::Object
  725. ]
  726. E:\libtorch\include\ATen/core/ivalue.h(403): note: see declaration of 'c10::intrusive_ptr<c10::ivalue::Object,c10::detail::intrusive_target_default_null_type<TTarget>>'
  727. with
  728. [
  729. TTarget=c10::ivalue::Object
  730. ]
  731. E:\libtorch\include\torch/csrc/jit/script/module.h(566): warning C4251: 'torch::jit::script::Module::create_method_guard_': class 'std::recursive_mutex' needs to have dll-interface to be used by clients of struct 'torch::jit::script::Module'
  732. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\mutex(95): note: see declaration of 'std::recursive_mutex'
  733. E:\libtorch\include\torch/csrc/jit/script/sugared_value.h(25): warning C4251: 'std::enable_shared_from_this<torch::jit::script::SugaredValue>::_Wptr': class 'std::weak_ptr<_Ty>' needs to have dll-interface to be used by clients of class 'std::enable_shared_from_this<torch::jit::script::SugaredValue>'
  734. with
  735. [
  736. _Ty=torch::jit::script::SugaredValue
  737. ]
  738. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\memory(2029): note: see declaration of 'std::weak_ptr<_Ty>'
  739. with
  740. [
  741. _Ty=torch::jit::script::SugaredValue
  742. ]
  743. E:\libtorch\include\torch/csrc/jit/script/sugared_value.h(156): warning C4251: 'torch::jit::script::BuiltinFunction::self': class 'c10::optional<torch::jit::NamedValue>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::BuiltinFunction'
  744. E:\libtorch\include\torch/csrc/jit/script/compilation_unit.h(130): note: see declaration of 'c10::optional<torch::jit::NamedValue>'
  745. E:\libtorch\include\torch/csrc/jit/script/sugared_value.h(185): warning C4251: 'torch::jit::script::BuiltinModule::name': class 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::BuiltinModule'
  746. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\xstring(4373): note: see declaration of 'std::basic_string<char,std::char_traits<char>,std::allocator<char>>'
  747. E:\libtorch\include\torch/csrc/jit/script/sugared_value.h(188): warning C4251: 'torch::jit::script::BuiltinModule::version': class 'c10::optional<int64_t>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::BuiltinModule'
  748. E:\libtorch\include\ATen/core/Type.h(160): note: see declaration of 'c10::optional<int64_t>'
  749. E:\libtorch\include\torch/csrc/jit/script/sugared_value.h(214): warning C4251: 'torch::jit::script::ClassValue::type_': class 'std::shared_ptr<c10::ClassType>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::ClassValue'
  750. E:\libtorch\include\ATen/core/ivalue.h(687): note: see declaration of 'std::shared_ptr<c10::ClassType>'
  751. E:\libtorch\include\torch/csrc/jit/script/sugared_value.h(282): warning C4251: 'torch::jit::script::CastValue::type_': class 'std::shared_ptr<c10::Type>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::CastValue'
  752. E:\libtorch\include\ATen/core/jit_type.h(64): note: see declaration of 'std::shared_ptr<c10::Type>'
  753. E:\libtorch\include\torch/csrc/jit/script/sugared_value.h(338): warning C4251: 'torch::jit::script::ClassNewMethod::type_': class 'std::shared_ptr<c10::ClassType>' needs to have dll-interface to be used by clients of struct 'torch::jit::script::ClassNewMethod'
  754. E:\libtorch\include\ATen/core/ivalue.h(687): note: see declaration of 'std::shared_ptr<c10::ClassType>'
  755. E:\libtorch\include\torch\csrc\api\include\torch/nn/module.h(62): warning C4251: 'std::enable_shared_from_this<torch::nn::Module>::_Wptr': class 'std::weak_ptr<_Ty>' needs to have dll-interface to be used by clients of class 'std::enable_shared_from_this<torch::nn::Module>'
  756. with
  757. [
  758. _Ty=torch::nn::Module
  759. ]
  760. F:\Visual Studio Program Files\Microsoft Visual Studio\2017\VC\Tools\MSVC\14.16.27023\include\memory(2029): note: see declaration of 'std::weak_ptr<_Ty>'
  761. with
  762. [
  763. _Ty=torch::nn::Module
  764. ]
  765. E:\libtorch\include\torch\csrc\api\include\torch/nn/module.h(514): warning C4251: 'torch::nn::Module::parameters_': class 'torch::OrderedDict<std::string,at::Tensor>' needs to have dll-interface to be used by clients of class 'torch::nn::Module'
  766. E:\libtorch\include\torch\csrc\api\include\torch/nn/module.h(210): note: see declaration of 'torch::OrderedDict<std::string,at::Tensor>'
  767. E:\libtorch\include\torch\csrc\api\include\torch/nn/module.h(517): warning C4251: 'torch::nn::Module::buffers_': class 'torch::OrderedDict<std::string,at::Tensor>' needs to have dll-interface to be used by clients of class 'torch::nn::Module'
  768. E:\libtorch\include\torch\csrc\api\include\torch/nn/module.h(210): note: see declaration of 'torch::OrderedDict<std::string,at::Tensor>'
  769. E:\libtorch\include\torch\csrc\api\include\torch/nn/module.h(520): warning C4251: 'torch::nn::Module::children_': class 'torch::OrderedDict<std::string,std::shared_ptr<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::Module'
  770. with
  771. [
  772. _Ty=torch::nn::Module
  773. ]
  774. E:\libtorch\include\torch\csrc\api\include\torch/nn/module.h(246): note: see declaration of 'torch::OrderedDict<std::string,std::shared_ptr<_Ty>>'
  775. with
  776. [
  777. _Ty=torch::nn::Module
  778. ]
  779. E:\libtorch\include\torch\csrc\api\include\torch/nn/module.h(523): warning C4251: 'torch::nn::Module::name_': class 'c10::optional<std::string>' needs to have dll-interface to be used by clients of class 'torch::nn::Module'
  780. E:\libtorch\include\torch/csrc/jit/named_value.h(71): note: see declaration of 'c10::optional<std::string>'
  781. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/conv.h(111): warning C4251: 'torch::nn::ConvImpl<1,torch::nn::Conv1dImpl>::options': struct 'torch::nn::ConvOptions<1>' needs to have dll-interface to be used by clients of class 'torch::nn::ConvImpl<1,torch::nn::Conv1dImpl>'
  782. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/conv.h(89): note: see declaration of 'torch::nn::ConvOptions<1>'
  783. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/conv.h(131): warning C4251: 'torch::nn::ConvImpl<2,torch::nn::Conv2dImpl>::options': struct 'torch::nn::ConvOptions<2>' needs to have dll-interface to be used by clients of class 'torch::nn::ConvImpl<2,torch::nn::Conv2dImpl>'
  784. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/conv.h(89): note: see declaration of 'torch::nn::ConvOptions<2>'
  785. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/conv.h(151): warning C4251: 'torch::nn::ConvImpl<3,torch::nn::Conv3dImpl>::options': struct 'torch::nn::ConvOptions<3>' needs to have dll-interface to be used by clients of class 'torch::nn::ConvImpl<3,torch::nn::Conv3dImpl>'
  786. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/conv.h(89): note: see declaration of 'torch::nn::ConvOptions<3>'
  787. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/functional.h(94): warning C4251: 'torch::nn::FunctionalImpl::function_': class 'std::function<at::Tensor (at::Tensor)>' needs to have dll-interface to be used by clients of class 'torch::nn::FunctionalImpl'
  788. E:\libtorch\include\torch\csrc\api\include\torch/data/transforms/tensor.h(39): note: see declaration of 'std::function<at::Tensor (at::Tensor)>'
  789. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): warning C4251: 'torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>::w_ih': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>'
  790. with
  791. [
  792. _Ty=at::Tensor
  793. ]
  794. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  795. with
  796. [
  797. _Ty=at::Tensor
  798. ]
  799. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): warning C4251: 'torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>::w_hh': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>'
  800. with
  801. [
  802. _Ty=at::Tensor
  803. ]
  804. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  805. with
  806. [
  807. _Ty=at::Tensor
  808. ]
  809. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): warning C4251: 'torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>::b_ih': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>'
  810. with
  811. [
  812. _Ty=at::Tensor
  813. ]
  814. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  815. with
  816. [
  817. _Ty=at::Tensor
  818. ]
  819. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): warning C4251: 'torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>::b_hh': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>'
  820. with
  821. [
  822. _Ty=at::Tensor
  823. ]
  824. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  825. with
  826. [
  827. _Ty=at::Tensor
  828. ]
  829. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): warning C4251: 'torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>::cudnn_mode_': class 'c10::optional<torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>::CuDNNMode>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>'
  830. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(64): note: see declaration of 'c10::optional<torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>::CuDNNMode>'
  831. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(177): warning C4251: 'torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>::flat_weights_': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase<torch::nn::RNNImpl>'
  832. with
  833. [
  834. _Ty=at::Tensor
  835. ]
  836. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  837. with
  838. [
  839. _Ty=at::Tensor
  840. ]
  841. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): warning C4251: 'torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>::w_ih': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>'
  842. with
  843. [
  844. _Ty=at::Tensor
  845. ]
  846. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  847. with
  848. [
  849. _Ty=at::Tensor
  850. ]
  851. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): warning C4251: 'torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>::w_hh': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>'
  852. with
  853. [
  854. _Ty=at::Tensor
  855. ]
  856. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  857. with
  858. [
  859. _Ty=at::Tensor
  860. ]
  861. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): warning C4251: 'torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>::b_ih': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>'
  862. with
  863. [
  864. _Ty=at::Tensor
  865. ]
  866. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  867. with
  868. [
  869. _Ty=at::Tensor
  870. ]
  871. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): warning C4251: 'torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>::b_hh': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>'
  872. with
  873. [
  874. _Ty=at::Tensor
  875. ]
  876. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  877. with
  878. [
  879. _Ty=at::Tensor
  880. ]
  881. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): warning C4251: 'torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>::cudnn_mode_': class 'c10::optional<torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>::CuDNNMode>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>'
  882. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(64): note: see declaration of 'c10::optional<torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>::CuDNNMode>'
  883. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(208): warning C4251: 'torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>::flat_weights_': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase<torch::nn::LSTMImpl>'
  884. with
  885. [
  886. _Ty=at::Tensor
  887. ]
  888. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  889. with
  890. [
  891. _Ty=at::Tensor
  892. ]
  893. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): warning C4251: 'torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>::w_ih': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>'
  894. with
  895. [
  896. _Ty=at::Tensor
  897. ]
  898. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  899. with
  900. [
  901. _Ty=at::Tensor
  902. ]
  903. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): warning C4251: 'torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>::w_hh': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>'
  904. with
  905. [
  906. _Ty=at::Tensor
  907. ]
  908. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  909. with
  910. [
  911. _Ty=at::Tensor
  912. ]
  913. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): warning C4251: 'torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>::b_ih': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>'
  914. with
  915. [
  916. _Ty=at::Tensor
  917. ]
  918. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  919. with
  920. [
  921. _Ty=at::Tensor
  922. ]
  923. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): warning C4251: 'torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>::b_hh': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>'
  924. with
  925. [
  926. _Ty=at::Tensor
  927. ]
  928. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  929. with
  930. [
  931. _Ty=at::Tensor
  932. ]
  933. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): warning C4251: 'torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>::cudnn_mode_': class 'c10::optional<torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>::CuDNNMode>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>'
  934. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(64): note: see declaration of 'c10::optional<torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>::CuDNNMode>'
  935. E:\libtorch\include\torch\csrc\api\include\torch/nn/modules/rnn.h(234): warning C4251: 'torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>::flat_weights_': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::nn::detail::RNNImplBase<torch::nn::GRUImpl>'
  936. with
  937. [
  938. _Ty=at::Tensor
  939. ]
  940. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  941. with
  942. [
  943. _Ty=at::Tensor
  944. ]
  945. E:\libtorch\include\torch\csrc\api\include\torch/optim/optimizer.h(83): warning C4251: 'torch::optim::detail::OptimizerBase::parameters_': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::detail::OptimizerBase'
  946. with
  947. [
  948. _Ty=at::Tensor
  949. ]
  950. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  951. with
  952. [
  953. _Ty=at::Tensor
  954. ]
  955. E:\libtorch\include\torch\csrc\api\include\torch/optim/adagrad.h(28): warning C4275: non dll-interface class 'torch::optim::Optimizer' used as base for dll-interface class 'torch::optim::Adagrad'
  956. E:\libtorch\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: see declaration of 'torch::optim::Optimizer'
  957. E:\libtorch\include\torch\csrc\api\include\torch/optim/adagrad.h(28): note: see declaration of 'torch::optim::Adagrad'
  958. E:\libtorch\include\torch\csrc\api\include\torch/optim/adagrad.h(44): warning C4251: 'torch::optim::Adagrad::sum_buffers': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::Adagrad'
  959. with
  960. [
  961. _Ty=at::Tensor
  962. ]
  963. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  964. with
  965. [
  966. _Ty=at::Tensor
  967. ]
  968. E:\libtorch\include\torch\csrc\api\include\torch/optim/adagrad.h(45): warning C4251: 'torch::optim::Adagrad::step_buffers': class 'std::vector<int64_t,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::Adagrad'
  969. with
  970. [
  971. _Ty=int64_t
  972. ]
  973. E:\libtorch\include\c10/util/typeid.h(597): note: see declaration of 'std::vector<int64_t,std::allocator<_Ty>>'
  974. with
  975. [
  976. _Ty=int64_t
  977. ]
  978. E:\libtorch\include\torch\csrc\api\include\torch/optim/adam.h(31): warning C4275: non dll-interface class 'torch::optim::Optimizer' used as base for dll-interface class 'torch::optim::Adam'
  979. E:\libtorch\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: see declaration of 'torch::optim::Optimizer'
  980. E:\libtorch\include\torch\csrc\api\include\torch/optim/adam.h(31): note: see declaration of 'torch::optim::Adam'
  981. E:\libtorch\include\torch\csrc\api\include\torch/optim/adam.h(45): warning C4251: 'torch::optim::Adam::step_buffers': class 'std::vector<int64_t,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::Adam'
  982. with
  983. [
  984. _Ty=int64_t
  985. ]
  986. E:\libtorch\include\c10/util/typeid.h(597): note: see declaration of 'std::vector<int64_t,std::allocator<_Ty>>'
  987. with
  988. [
  989. _Ty=int64_t
  990. ]
  991. E:\libtorch\include\torch\csrc\api\include\torch/optim/adam.h(46): warning C4251: 'torch::optim::Adam::exp_average_buffers': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::Adam'
  992. with
  993. [
  994. _Ty=at::Tensor
  995. ]
  996. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  997. with
  998. [
  999. _Ty=at::Tensor
  1000. ]
  1001. E:\libtorch\include\torch\csrc\api\include\torch/optim/adam.h(47): warning C4251: 'torch::optim::Adam::exp_average_sq_buffers': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::Adam'
  1002. with
  1003. [
  1004. _Ty=at::Tensor
  1005. ]
  1006. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  1007. with
  1008. [
  1009. _Ty=at::Tensor
  1010. ]
  1011. E:\libtorch\include\torch\csrc\api\include\torch/optim/adam.h(48): warning C4251: 'torch::optim::Adam::max_exp_average_sq_buffers': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::Adam'
  1012. with
  1013. [
  1014. _Ty=at::Tensor
  1015. ]
  1016. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  1017. with
  1018. [
  1019. _Ty=at::Tensor
  1020. ]
  1021. E:\libtorch\include\torch\csrc\api\include\torch/optim/lbfgs.h(22): warning C4305: 'initializing': truncation from 'double' to 'float'
  1022. E:\libtorch\include\torch\csrc\api\include\torch/optim/lbfgs.h(23): warning C4305: 'initializing': truncation from 'double' to 'float'
  1023. E:\libtorch\include\torch\csrc\api\include\torch/optim/lbfgs.h(27): warning C4275: non dll-interface class 'torch::optim::LossClosureOptimizer' used as base for dll-interface class 'torch::optim::LBFGS'
  1024. E:\libtorch\include\torch\csrc\api\include\torch/optim/optimizer.h(110): note: see declaration of 'torch::optim::LossClosureOptimizer'
  1025. E:\libtorch\include\torch\csrc\api\include\torch/optim/lbfgs.h(27): note: see declaration of 'torch::optim::LBFGS'
  1026. E:\libtorch\include\torch\csrc\api\include\torch/optim/lbfgs.h(48): warning C4251: 'torch::optim::LBFGS::ro': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::LBFGS'
  1027. with
  1028. [
  1029. _Ty=at::Tensor
  1030. ]
  1031. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  1032. with
  1033. [
  1034. _Ty=at::Tensor
  1035. ]
  1036. E:\libtorch\include\torch\csrc\api\include\torch/optim/lbfgs.h(49): warning C4251: 'torch::optim::LBFGS::al': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::LBFGS'
  1037. with
  1038. [
  1039. _Ty=at::Tensor
  1040. ]
  1041. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  1042. with
  1043. [
  1044. _Ty=at::Tensor
  1045. ]
  1046. E:\libtorch\include\torch\csrc\api\include\torch/optim/lbfgs.h(50): warning C4251: 'torch::optim::LBFGS::old_dirs': class 'std::deque<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::LBFGS'
  1047. with
  1048. [
  1049. _Ty=at::Tensor
  1050. ]
  1051. E:\libtorch\include\torch\csrc\api\include\torch/optim/lbfgs.h(50): note: see declaration of 'std::deque<at::Tensor,std::allocator<_Ty>>'
  1052. with
  1053. [
  1054. _Ty=at::Tensor
  1055. ]
  1056. E:\libtorch\include\torch\csrc\api\include\torch/optim/lbfgs.h(51): warning C4251: 'torch::optim::LBFGS::old_stps': class 'std::deque<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::LBFGS'
  1057. with
  1058. [
  1059. _Ty=at::Tensor
  1060. ]
  1061. E:\libtorch\include\torch\csrc\api\include\torch/optim/lbfgs.h(50): note: see declaration of 'std::deque<at::Tensor,std::allocator<_Ty>>'
  1062. with
  1063. [
  1064. _Ty=at::Tensor
  1065. ]
  1066. E:\libtorch\include\torch\csrc\api\include\torch/optim/rmsprop.h(34): warning C4275: non dll-interface class 'torch::optim::Optimizer' used as base for dll-interface class 'torch::optim::RMSprop'
  1067. E:\libtorch\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: see declaration of 'torch::optim::Optimizer'
  1068. E:\libtorch\include\torch\csrc\api\include\torch/optim/rmsprop.h(34): note: see declaration of 'torch::optim::RMSprop'
  1069. E:\libtorch\include\torch\csrc\api\include\torch/optim/rmsprop.h(50): warning C4251: 'torch::optim::RMSprop::square_average_buffers': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::RMSprop'
  1070. with
  1071. [
  1072. _Ty=at::Tensor
  1073. ]
  1074. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  1075. with
  1076. [
  1077. _Ty=at::Tensor
  1078. ]
  1079. E:\libtorch\include\torch\csrc\api\include\torch/optim/rmsprop.h(51): warning C4251: 'torch::optim::RMSprop::momentum_buffers': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::RMSprop'
  1080. with
  1081. [
  1082. _Ty=at::Tensor
  1083. ]
  1084. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  1085. with
  1086. [
  1087. _Ty=at::Tensor
  1088. ]
  1089. E:\libtorch\include\torch\csrc\api\include\torch/optim/rmsprop.h(52): warning C4251: 'torch::optim::RMSprop::grad_average_buffers': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::RMSprop'
  1090. with
  1091. [
  1092. _Ty=at::Tensor
  1093. ]
  1094. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  1095. with
  1096. [
  1097. _Ty=at::Tensor
  1098. ]
  1099. E:\libtorch\include\torch\csrc\api\include\torch/optim/sgd.h(31): warning C4275: non dll-interface class 'torch::optim::Optimizer' used as base for dll-interface class 'torch::optim::SGD'
  1100. E:\libtorch\include\torch\csrc\api\include\torch/optim/optimizer.h(100): note: see declaration of 'torch::optim::Optimizer'
  1101. E:\libtorch\include\torch\csrc\api\include\torch/optim/sgd.h(31): note: see declaration of 'torch::optim::SGD'
  1102. E:\libtorch\include\torch\csrc\api\include\torch/optim/sgd.h(45): warning C4251: 'torch::optim::SGD::momentum_buffers': class 'std::vector<at::Tensor,std::allocator<_Ty>>' needs to have dll-interface to be used by clients of class 'torch::optim::SGD'
  1103. with
  1104. [
  1105. _Ty=at::Tensor
  1106. ]
  1107. E:\libtorch\include\ATen/core/Type.h(178): note: see declaration of 'std::vector<at::Tensor,std::allocator<_Ty>>'
  1108. with
  1109. [
  1110. _Ty=at::Tensor
  1111. ]
  1112. E:\libtorch\include\c10/util/Optional.h(430): warning C4244: 'argument': conversion from '_Ty' to 'T', possible loss of data
  1113. with
  1114. [
  1115. _Ty=unsigned __int64
  1116. ]
  1117. and
  1118. [
  1119. T=int
  1120. ]
  1121. E:\libtorch\include\ATen/core/function_schema.h(171): note: see reference to function template instantiation 'c10::optional<int32_t>::optional<size_t,false>(U &&)' being compiled
  1122. with
  1123. [
  1124. U=size_t
  1125. ]
  1126. E:\libtorch\include\ATen/core/function_schema.h(171): note: see reference to function template instantiation 'c10::optional<int32_t>::optional<size_t,false>(U &&)' being compiled
  1127. with
  1128. [
  1129. U=size_t
  1130. ]
  1131. E:\libtorch\include\c10/util/Half.h(440): warning C4018: '>': signed/unsigned mismatch
  1132. E:\libtorch\include\c10/util/Half.h(486): note: see reference to function template instantiation 'bool c10::overflows<To,From>(From)' being compiled
  1133. with
  1134. [
  1135. To=int64_t,
  1136. From=int64_t
  1137. ]
  1138. E:\libtorch\include\c10/core/Scalar.h(75): note: see reference to function template instantiation 'To c10::checked_convert<int64_t,int64_t>(From,const char *)' being compiled
  1139. with
  1140. [
  1141. To=int64_t,
  1142. From=int64_t
  1143. ]
  1144. E:\libtorch\include\c10/util/Half.h(400): warning C4244: 'argument': conversion from 'From' to 'const std::complex<double>::_Ty', possible loss of data
  1145. with
  1146. [
  1147. From=int64_t
  1148. ]
  1149. E:\libtorch\include\c10/util/Half.h(399): note: while compiling class template member function 'To c10::Converter<To,From,void>::operator ()(From)'
  1150. with
  1151. [
  1152. To=std::complex<double>,
  1153. From=int64_t
  1154. ]
  1155. E:\libtorch\include\c10/util/Half.h(406): note: see reference to function template instantiation 'To c10::Converter<To,From,void>::operator ()(From)' being compiled
  1156. with
  1157. [
  1158. To=std::complex<double>,
  1159. From=int64_t
  1160. ]
  1161. E:\libtorch\include\c10/util/Half.h(406): note: see reference to class template instantiation 'c10::Converter<To,From,void>' being compiled
  1162. with
  1163. [
  1164. To=std::complex<double>,
  1165. From=int64_t
  1166. ]
  1167. E:\libtorch\include\c10/util/Half.h(492): note: see reference to function template instantiation 'To c10::convert<To,From>(From)' being compiled
  1168. with
  1169. [
  1170. To=std::complex<double>,
  1171. From=int64_t
  1172. ]
  1173. E:\libtorch\include\c10/core/Scalar.h(75): note: see reference to function template instantiation 'To c10::checked_convert<std::complex<double>,int64_t>(From,const char *)' being compiled
  1174. with
  1175. [
  1176. To=std::complex<double>,
  1177. From=int64_t
  1178. ]
  1179. E:\libtorch\include\c10/util/Half.h(400): warning C4244: 'argument': conversion from 'From' to 'const std::complex<float>::_Ty', possible loss of data
  1180. with
  1181. [
  1182. From=int64_t
  1183. ]
  1184. E:\libtorch\include\c10/util/Half.h(399): note: while compiling class template member function 'To c10::Converter<To,From,void>::operator ()(From)'
  1185. with
  1186. [
  1187. To=std::complex<float>,
  1188. From=int64_t
  1189. ]
  1190. E:\libtorch\include\c10/util/Half.h(406): note: see reference to function template instantiation 'To c10::Converter<To,From,void>::operator ()(From)' being compiled
  1191. with
  1192. [
  1193. To=std::complex<float>,
  1194. From=int64_t
  1195. ]
  1196. E:\libtorch\include\c10/util/Half.h(406): note: see reference to class template instantiation 'c10::Converter<To,From,void>' being compiled
  1197. with
  1198. [
  1199. To=std::complex<float>,
  1200. From=int64_t
  1201. ]
  1202. E:\libtorch\include\c10/util/Half.h(492): note: see reference to function template instantiation 'To c10::convert<To,From>(From)' being compiled
  1203. with
  1204. [
  1205. To=std::complex<float>,
  1206. From=int64_t
  1207. ]
  1208. E:\libtorch\include\c10/core/Scalar.h(75): note: see reference to function template instantiation 'To c10::checked_convert<std::complex<float>,int64_t>(From,const char *)' being compiled
  1209. with
  1210. [
  1211. To=std::complex<float>,
  1212. From=int64_t
  1213. ]
  1214. E:\libtorch\include\c10/util/Half.h(400): warning C4244: 'argument': conversion from 'From' to 'const std::complex<float>::_Ty', possible loss of data
  1215. with
  1216. [
  1217. From=double
  1218. ]
  1219. E:\libtorch\include\c10/util/Half.h(399): note: while compiling class template member function 'To c10::Converter<To,From,void>::operator ()(From)'
  1220. with
  1221. [
  1222. To=std::complex<float>,
  1223. From=double
  1224. ]
  1225. E:\libtorch\include\c10/util/Half.h(406): note: see reference to function template instantiation 'To c10::Converter<To,From,void>::operator ()(From)' being compiled
  1226. with
  1227. [
  1228. To=std::complex<float>,
  1229. From=double
  1230. ]
  1231. E:\libtorch\include\c10/util/Half.h(406): note: see reference to class template instantiation 'c10::Converter<To,From,void>' being compiled
  1232. with
  1233. [
  1234. To=std::complex<float>,
  1235. From=double
  1236. ]
  1237. E:\libtorch\include\c10/util/Half.h(492): note: see reference to function template instantiation 'To c10::convert<To,From>(From)' being compiled
  1238. with
  1239. [
  1240. To=std::complex<float>,
  1241. From=double
  1242. ]
  1243. E:\libtorch\include\c10/core/Scalar.h(75): note: see reference to function template instantiation 'To c10::checked_convert<std::complex<float>,double>(From,const char *)' being compiled
  1244. with
  1245. [
  1246. To=std::complex<float>,
  1247. From=double
  1248. ]
  1249. E:\libtorch\include\c10/util/Half.h(400): warning C4244: 'argument': conversion from 'From' to 'float', possible loss of data
  1250. with
  1251. [
  1252. From=int64_t
  1253. ]
  1254. E:\libtorch\include\c10/util/Half.h(399): note: while compiling class template member function 'To c10::Converter<To,From,void>::operator ()(From)'
  1255. with
  1256. [
  1257. To=c10::Half,
  1258. From=int64_t
  1259. ]
  1260. E:\libtorch\include\c10/util/Half.h(406): note: see reference to function template instantiation 'To c10::Converter<To,From,void>::operator ()(From)' being compiled
  1261. with
  1262. [
  1263. To=c10::Half,
  1264. From=int64_t
  1265. ]
  1266. E:\libtorch\include\c10/util/Half.h(406): note: see reference to class template instantiation 'c10::Converter<To,From,void>' being compiled
  1267. with
  1268. [
  1269. To=c10::Half,
  1270. From=int64_t
  1271. ]
  1272. E:\libtorch\include\c10/util/Half.h(492): note: see reference to function template instantiation 'To c10::convert<To,From>(From)' being compiled
  1273. with
  1274. [
  1275. To=c10::Half,
  1276. From=int64_t
  1277. ]
  1278. E:\libtorch\include\c10/core/Scalar.h(75): note: see reference to function template instantiation 'To c10::checked_convert<c10::Half,int64_t>(From,const char *)' being compiled
  1279. with
  1280. [
  1281. To=c10::Half,
  1282. From=int64_t
  1283. ]
  1284. E:\libtorch\include\c10/util/Half.h(416): warning C4244: 'argument': conversion from '_Ty' to 'float', possible loss of data
  1285. with
  1286. [
  1287. _Ty=double
  1288. ]
  1289. E:\libtorch\include\c10/util/Half.h(415): note: while compiling class template member function 'To c10::Converter<To,From,void>::operator ()(std::complex<double>)'
  1290. with
  1291. [
  1292. To=c10::Half,
  1293. From=std::complex<double>
  1294. ]
  1295. E:\libtorch\include\c10/util/Half.h(406): note: see reference to function template instantiation 'To c10::Converter<To,From,void>::operator ()(std::complex<double>)' being compiled
  1296. with
  1297. [
  1298. To=c10::Half,
  1299. From=std::complex<double>
  1300. ]
  1301. E:\libtorch\include\c10/util/Half.h(406): note: see reference to class template instantiation 'c10::Converter<To,From,void>' being compiled
  1302. with
  1303. [
  1304. To=c10::Half,
  1305. From=std::complex<double>
  1306. ]
  1307. E:\libtorch\include\c10/util/Half.h(492): note: see reference to function template instantiation 'To c10::convert<To,From>(From)' being compiled
  1308. with
  1309. [
  1310. To=c10::Half,
  1311. From=std::complex<double>
  1312. ]
  1313. E:\libtorch\include\c10/core/Scalar.h(75): note: see reference to function template instantiation 'To c10::checked_convert<c10::Half,std::complex<double>>(From,const char *)' being compiled
  1314. with
  1315. [
  1316. To=c10::Half,
  1317. From=std::complex<double>
  1318. ]
  1319. E:\libtorch\include\c10/util/Half.h(400): warning C4244: 'argument': conversion from 'From' to 'float', possible loss of data
  1320. with
  1321. [
  1322. From=double
  1323. ]
  1324. E:\libtorch\include\c10/util/Half.h(399): note: while compiling class template member function 'To c10::Converter<To,From,void>::operator ()(From)'
  1325. with
  1326. [
  1327. To=c10::Half,
  1328. From=double
  1329. ]
  1330. E:\libtorch\include\c10/util/Half.h(406): note: see reference to function template instantiation 'To c10::Converter<To,From,void>::operator ()(From)' being compiled
  1331. with
  1332. [
  1333. To=c10::Half,
  1334. From=double
  1335. ]
  1336. E:\libtorch\include\c10/util/Half.h(406): note: see reference to class template instantiation 'c10::Converter<To,From,void>' being compiled
  1337. with
  1338. [
  1339. To=c10::Half,
  1340. From=double
  1341. ]
  1342. E:\libtorch\include\c10/util/Half.h(492): note: see reference to function template instantiation 'To c10::convert<To,From>(From)' being compiled
  1343. with
  1344. [
  1345. To=c10::Half,
  1346. From=double
  1347. ]
  1348. E:\libtorch\include\c10/core/Scalar.h(75): note: see reference to function template instantiation 'To c10::checked_convert<c10::Half,double>(From,const char *)' being compiled
  1349. with
  1350. [
  1351. To=c10::Half,
  1352. From=double
  1353. ]
  1354. [100%] Linking CXX executable sampleC.exe
  1355. [100%] Built target sampleC
  1356.  
  1357. Build finished
Add Comment
Please, Sign In to add comment