diff options
author | ArutyunovG <arutyunovg@yandex.ru> | 2018-11-16 12:06:21 -0800 |
---|---|---|
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | 2018-11-16 12:16:28 -0800 |
commit | 8e91da4cb3d645b178b515bab54331c917340cd5 (patch) | |
tree | 055fe2360dd23e2c0435ee3769b83e9596699167 /caffe2/transforms | |
parent | 2c21de2007b3185231abfd41ffb49ce632f52f04 (diff) | |
download | pytorch-8e91da4cb3d645b178b515bab54331c917340cd5.tar.gz pytorch-8e91da4cb3d645b178b515bab54331c917340cd5.tar.bz2 pytorch-8e91da4cb3d645b178b515bab54331c917340cd5.zip |
Windows shared build (#13550)
Summary:
Hi guys,
I'd like to build Caffe2 with more supported options in Windows with Microsoft Visual Studios.
This is the first pull request.
Running scripts/build_windows_shared.bat is able to build Caffe2 with both CMAKE_BUILD_TYPE=Debug and CMAKE_BUILD_TYPE=Release with Visual Studio 14 2015.
CUDA is 9.0, cudnn is 7.0.5, glog, gflags and lmdb are supported on my system.
Python is 3.5, Detectron works from python interface as well.
It was even possible to debug detectron code and step into caffe2_gpu.dll with pdbs built.
What is disappointing, that c10/experimental ops don't build with this Visual Studio generator, I added special option INCLUDE_EXPERIMENTAL_C10_OPS (default ON) to deal with it in build_windows_shared.bat.
After this pull request the next step is to add Visual Studio 2017 support in the script.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/13550
Reviewed By: ezyang
Differential Revision: D13042597
Pulled By: orionr
fbshipit-source-id: f313f909f599cd582a1d000eff766eef3a9fc4fc
Diffstat (limited to 'caffe2/transforms')
-rw-r--r-- | caffe2/transforms/pattern_net_transform.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/caffe2/transforms/pattern_net_transform.h b/caffe2/transforms/pattern_net_transform.h index 6ca1cf6f85..e12be6a4c7 100644 --- a/caffe2/transforms/pattern_net_transform.h +++ b/caffe2/transforms/pattern_net_transform.h @@ -124,7 +124,7 @@ class CAFFE2_API PatternNetTransform : public Transform { bool argument_match_ = false; const string TransformBlobWrapper(const string& blob_name) { - return "transform/" + blob_name + "_" + caffe2::to_string(ssa_id_); + return "transform/" + blob_name + "_" + c10::to_string(ssa_id_); } int ssa_id_ = 0; |