I recently installed pytorch 1.0.0 using conda. I think when I installed 0.4.0 it was from source. Using the exact same code, a single batch with a backwards pass went from taking less than a second to about 9 minutes (running on the CPU). Having run torch.utils.bottleneck, I was told that it was almost entirely the backwards pass which was evident trying to step through the code with a debugger.
I imagine I should probably install pytorch 1.0.0 from source, as the issue will likely have stemmed from not using the correct linear algebra package or something like that. I’m using a Mac, and quite frankly, every time I’ve tried to do this it’s basically entailed spending hours on StackOverflow trying to debug the installation issues. I just want to install 1.0.0, without GPU support, without having to lose a day to googling obscure cmake errors.
I tried following the instructions on https://github.com/pytorch/pytorch and got:
CMake Error: Error: generator : Ninja
Does not match the generator used previously: Unix Makefiles
Either remove the CMakeCache.txt file and CMakeFiles directory or choose a different binary directory.
Traceback (most recent call last):
  File "setup.py", line 734, in <module>
    build_deps()
  File "setup.py", line 281, in build_deps
    build_dir='build')
  File "/Users/askates/Documents/GitRepos/pytorch/tools/build_pytorch_libs.py", line 232, in build_caffe2
    my_env)
  File "/Users/askates/Documents/GitRepos/pytorch/tools/build_pytorch_libs.py", line 213, in run_cmake
    check_call(cmake_args, cwd=build_dir, env=my_env)
  File "/Users/askates/anaconda3/envs/pytorch-1.0/lib/python3.6/subprocess.py", line 291, in check_call
    raise CalledProcessError(retcode, cmd)

Any suggestions as to what could be causing this problem specifically? Thanks for any help you can spare!