diff --git a/torch/lib/TH/CMakeLists.txt b/aten/src/TH/CMakeLists.txt similarity index 100% rename from torch/lib/TH/CMakeLists.txt rename to aten/src/TH/CMakeLists.txt diff --git a/torch/lib/TH/README.md b/aten/src/TH/README.md similarity index 100% rename from torch/lib/TH/README.md rename to aten/src/TH/README.md diff --git a/torch/lib/TH/TH.h b/aten/src/TH/TH.h similarity index 100% rename from torch/lib/TH/TH.h rename to aten/src/TH/TH.h diff --git a/torch/lib/TH/THAllocator.c b/aten/src/TH/THAllocator.c similarity index 100% rename from torch/lib/TH/THAllocator.c rename to aten/src/TH/THAllocator.c diff --git a/torch/lib/TH/THAllocator.h b/aten/src/TH/THAllocator.h similarity index 100% rename from torch/lib/TH/THAllocator.h rename to aten/src/TH/THAllocator.h diff --git a/torch/lib/TH/THAtomic.c b/aten/src/TH/THAtomic.c similarity index 100% rename from torch/lib/TH/THAtomic.c rename to aten/src/TH/THAtomic.c diff --git a/torch/lib/TH/THAtomic.h b/aten/src/TH/THAtomic.h similarity index 100% rename from torch/lib/TH/THAtomic.h rename to aten/src/TH/THAtomic.h diff --git a/torch/lib/TH/THBlas.c b/aten/src/TH/THBlas.c similarity index 100% rename from torch/lib/TH/THBlas.c rename to aten/src/TH/THBlas.c diff --git a/torch/lib/TH/THBlas.h b/aten/src/TH/THBlas.h similarity index 100% rename from torch/lib/TH/THBlas.h rename to aten/src/TH/THBlas.h diff --git a/torch/lib/TH/THConfig.cmake.in b/aten/src/TH/THConfig.cmake.in similarity index 100% rename from torch/lib/TH/THConfig.cmake.in rename to aten/src/TH/THConfig.cmake.in diff --git a/torch/lib/TH/THDiskFile.c b/aten/src/TH/THDiskFile.c similarity index 100% rename from torch/lib/TH/THDiskFile.c rename to aten/src/TH/THDiskFile.c diff --git a/torch/lib/TH/THDiskFile.h b/aten/src/TH/THDiskFile.h similarity index 100% rename from torch/lib/TH/THDiskFile.h rename to aten/src/TH/THDiskFile.h diff --git a/torch/lib/TH/THFile.c b/aten/src/TH/THFile.c similarity index 100% rename from torch/lib/TH/THFile.c rename to aten/src/TH/THFile.c diff --git a/torch/lib/TH/THFile.h b/aten/src/TH/THFile.h similarity index 100% rename from torch/lib/TH/THFile.h rename to aten/src/TH/THFile.h diff --git a/torch/lib/TH/THFilePrivate.h b/aten/src/TH/THFilePrivate.h similarity index 100% rename from torch/lib/TH/THFilePrivate.h rename to aten/src/TH/THFilePrivate.h diff --git a/torch/lib/TH/THGeneral.c b/aten/src/TH/THGeneral.c similarity index 100% rename from torch/lib/TH/THGeneral.c rename to aten/src/TH/THGeneral.c diff --git a/torch/lib/TH/THGeneral.h.in b/aten/src/TH/THGeneral.h.in similarity index 100% rename from torch/lib/TH/THGeneral.h.in rename to aten/src/TH/THGeneral.h.in diff --git a/torch/lib/TH/THGenerateAllTypes.h b/aten/src/TH/THGenerateAllTypes.h similarity index 100% rename from torch/lib/TH/THGenerateAllTypes.h rename to aten/src/TH/THGenerateAllTypes.h diff --git a/torch/lib/TH/THGenerateByteType.h b/aten/src/TH/THGenerateByteType.h similarity index 100% rename from torch/lib/TH/THGenerateByteType.h rename to aten/src/TH/THGenerateByteType.h diff --git a/torch/lib/TH/THGenerateCharType.h b/aten/src/TH/THGenerateCharType.h similarity index 100% rename from torch/lib/TH/THGenerateCharType.h rename to aten/src/TH/THGenerateCharType.h diff --git a/torch/lib/TH/THGenerateDoubleType.h b/aten/src/TH/THGenerateDoubleType.h similarity index 100% rename from torch/lib/TH/THGenerateDoubleType.h rename to aten/src/TH/THGenerateDoubleType.h diff --git a/torch/lib/TH/THGenerateFloatType.h b/aten/src/TH/THGenerateFloatType.h similarity index 100% rename from torch/lib/TH/THGenerateFloatType.h rename to aten/src/TH/THGenerateFloatType.h diff --git a/torch/lib/TH/THGenerateFloatTypes.h b/aten/src/TH/THGenerateFloatTypes.h similarity index 100% rename from torch/lib/TH/THGenerateFloatTypes.h rename to aten/src/TH/THGenerateFloatTypes.h diff --git a/torch/lib/TH/THGenerateHalfType.h b/aten/src/TH/THGenerateHalfType.h similarity index 100% rename from torch/lib/TH/THGenerateHalfType.h rename to aten/src/TH/THGenerateHalfType.h diff --git a/torch/lib/TH/THGenerateIntType.h b/aten/src/TH/THGenerateIntType.h similarity index 100% rename from torch/lib/TH/THGenerateIntType.h rename to aten/src/TH/THGenerateIntType.h diff --git a/torch/lib/TH/THGenerateIntTypes.h b/aten/src/TH/THGenerateIntTypes.h similarity index 100% rename from torch/lib/TH/THGenerateIntTypes.h rename to aten/src/TH/THGenerateIntTypes.h diff --git a/torch/lib/TH/THGenerateLongType.h b/aten/src/TH/THGenerateLongType.h similarity index 100% rename from torch/lib/TH/THGenerateLongType.h rename to aten/src/TH/THGenerateLongType.h diff --git a/torch/lib/TH/THGenerateShortType.h b/aten/src/TH/THGenerateShortType.h similarity index 100% rename from torch/lib/TH/THGenerateShortType.h rename to aten/src/TH/THGenerateShortType.h diff --git a/torch/lib/TH/THHalf.c b/aten/src/TH/THHalf.c similarity index 100% rename from torch/lib/TH/THHalf.c rename to aten/src/TH/THHalf.c diff --git a/torch/lib/TH/THHalf.h b/aten/src/TH/THHalf.h similarity index 100% rename from torch/lib/TH/THHalf.h rename to aten/src/TH/THHalf.h diff --git a/torch/lib/TH/THLapack.c b/aten/src/TH/THLapack.c similarity index 100% rename from torch/lib/TH/THLapack.c rename to aten/src/TH/THLapack.c diff --git a/torch/lib/TH/THLapack.h b/aten/src/TH/THLapack.h similarity index 100% rename from torch/lib/TH/THLapack.h rename to aten/src/TH/THLapack.h diff --git a/torch/lib/TH/THLogAdd.c b/aten/src/TH/THLogAdd.c similarity index 100% rename from torch/lib/TH/THLogAdd.c rename to aten/src/TH/THLogAdd.c diff --git a/torch/lib/TH/THLogAdd.h b/aten/src/TH/THLogAdd.h similarity index 100% rename from torch/lib/TH/THLogAdd.h rename to aten/src/TH/THLogAdd.h diff --git a/torch/lib/TH/THMath.h b/aten/src/TH/THMath.h similarity index 100% rename from torch/lib/TH/THMath.h rename to aten/src/TH/THMath.h diff --git a/torch/lib/TH/THMemoryFile.c b/aten/src/TH/THMemoryFile.c similarity index 100% rename from torch/lib/TH/THMemoryFile.c rename to aten/src/TH/THMemoryFile.c diff --git a/torch/lib/TH/THMemoryFile.h b/aten/src/TH/THMemoryFile.h similarity index 100% rename from torch/lib/TH/THMemoryFile.h rename to aten/src/TH/THMemoryFile.h diff --git a/torch/lib/TH/THRandom.c b/aten/src/TH/THRandom.c similarity index 100% rename from torch/lib/TH/THRandom.c rename to aten/src/TH/THRandom.c diff --git a/torch/lib/TH/THRandom.h b/aten/src/TH/THRandom.h similarity index 100% rename from torch/lib/TH/THRandom.h rename to aten/src/TH/THRandom.h diff --git a/torch/lib/TH/THSize.c b/aten/src/TH/THSize.c similarity index 100% rename from torch/lib/TH/THSize.c rename to aten/src/TH/THSize.c diff --git a/torch/lib/TH/THSize.h b/aten/src/TH/THSize.h similarity index 100% rename from torch/lib/TH/THSize.h rename to aten/src/TH/THSize.h diff --git a/torch/lib/TH/THStorage.c b/aten/src/TH/THStorage.c similarity index 100% rename from torch/lib/TH/THStorage.c rename to aten/src/TH/THStorage.c diff --git a/torch/lib/TH/THStorage.h b/aten/src/TH/THStorage.h similarity index 100% rename from torch/lib/TH/THStorage.h rename to aten/src/TH/THStorage.h diff --git a/torch/lib/TH/THTensor.c b/aten/src/TH/THTensor.c similarity index 100% rename from torch/lib/TH/THTensor.c rename to aten/src/TH/THTensor.c diff --git a/torch/lib/TH/THTensor.h b/aten/src/TH/THTensor.h similarity index 100% rename from torch/lib/TH/THTensor.h rename to aten/src/TH/THTensor.h diff --git a/torch/lib/TH/THTensorApply.h b/aten/src/TH/THTensorApply.h similarity index 100% rename from torch/lib/TH/THTensorApply.h rename to aten/src/TH/THTensorApply.h diff --git a/torch/lib/TH/THTensorDimApply.h b/aten/src/TH/THTensorDimApply.h similarity index 100% rename from torch/lib/TH/THTensorDimApply.h rename to aten/src/TH/THTensorDimApply.h diff --git a/torch/lib/TH/THTensorMacros.h b/aten/src/TH/THTensorMacros.h similarity index 100% rename from torch/lib/TH/THTensorMacros.h rename to aten/src/TH/THTensorMacros.h diff --git a/torch/lib/TH/THVector.c b/aten/src/TH/THVector.c similarity index 100% rename from torch/lib/TH/THVector.c rename to aten/src/TH/THVector.c diff --git a/torch/lib/TH/THVector.h b/aten/src/TH/THVector.h similarity index 100% rename from torch/lib/TH/THVector.h rename to aten/src/TH/THVector.h diff --git a/torch/lib/TH/cmake/FindARM.cmake b/aten/src/TH/cmake/FindARM.cmake similarity index 100% rename from torch/lib/TH/cmake/FindARM.cmake rename to aten/src/TH/cmake/FindARM.cmake diff --git a/torch/lib/TH/cmake/FindBLAS.cmake b/aten/src/TH/cmake/FindBLAS.cmake similarity index 100% rename from torch/lib/TH/cmake/FindBLAS.cmake rename to aten/src/TH/cmake/FindBLAS.cmake diff --git a/torch/lib/TH/cmake/FindLAPACK.cmake b/aten/src/TH/cmake/FindLAPACK.cmake similarity index 100% rename from torch/lib/TH/cmake/FindLAPACK.cmake rename to aten/src/TH/cmake/FindLAPACK.cmake diff --git a/torch/lib/TH/cmake/FindMKL.cmake b/aten/src/TH/cmake/FindMKL.cmake similarity index 100% rename from torch/lib/TH/cmake/FindMKL.cmake rename to aten/src/TH/cmake/FindMKL.cmake diff --git a/torch/lib/TH/cmake/FindSSE.cmake b/aten/src/TH/cmake/FindSSE.cmake similarity index 100% rename from torch/lib/TH/cmake/FindSSE.cmake rename to aten/src/TH/cmake/FindSSE.cmake diff --git a/torch/lib/TH/generic/THBlas.c b/aten/src/TH/generic/THBlas.c similarity index 100% rename from torch/lib/TH/generic/THBlas.c rename to aten/src/TH/generic/THBlas.c diff --git a/torch/lib/TH/generic/THBlas.h b/aten/src/TH/generic/THBlas.h similarity index 100% rename from torch/lib/TH/generic/THBlas.h rename to aten/src/TH/generic/THBlas.h diff --git a/torch/lib/TH/generic/THLapack.c b/aten/src/TH/generic/THLapack.c similarity index 100% rename from torch/lib/TH/generic/THLapack.c rename to aten/src/TH/generic/THLapack.c diff --git a/torch/lib/TH/generic/THLapack.h b/aten/src/TH/generic/THLapack.h similarity index 100% rename from torch/lib/TH/generic/THLapack.h rename to aten/src/TH/generic/THLapack.h diff --git a/torch/lib/TH/generic/THStorage.c b/aten/src/TH/generic/THStorage.c similarity index 100% rename from torch/lib/TH/generic/THStorage.c rename to aten/src/TH/generic/THStorage.c diff --git a/torch/lib/TH/generic/THStorage.h b/aten/src/TH/generic/THStorage.h similarity index 100% rename from torch/lib/TH/generic/THStorage.h rename to aten/src/TH/generic/THStorage.h diff --git a/torch/lib/TH/generic/THStorageCopy.c b/aten/src/TH/generic/THStorageCopy.c similarity index 100% rename from torch/lib/TH/generic/THStorageCopy.c rename to aten/src/TH/generic/THStorageCopy.c diff --git a/torch/lib/TH/generic/THStorageCopy.h b/aten/src/TH/generic/THStorageCopy.h similarity index 100% rename from torch/lib/TH/generic/THStorageCopy.h rename to aten/src/TH/generic/THStorageCopy.h diff --git a/torch/lib/TH/generic/THTensor.c b/aten/src/TH/generic/THTensor.c similarity index 100% rename from torch/lib/TH/generic/THTensor.c rename to aten/src/TH/generic/THTensor.c diff --git a/torch/lib/TH/generic/THTensor.h b/aten/src/TH/generic/THTensor.h similarity index 100% rename from torch/lib/TH/generic/THTensor.h rename to aten/src/TH/generic/THTensor.h diff --git a/torch/lib/TH/generic/THTensorConv.c b/aten/src/TH/generic/THTensorConv.c similarity index 100% rename from torch/lib/TH/generic/THTensorConv.c rename to aten/src/TH/generic/THTensorConv.c diff --git a/torch/lib/TH/generic/THTensorConv.h b/aten/src/TH/generic/THTensorConv.h similarity index 100% rename from torch/lib/TH/generic/THTensorConv.h rename to aten/src/TH/generic/THTensorConv.h diff --git a/torch/lib/TH/generic/THTensorCopy.c b/aten/src/TH/generic/THTensorCopy.c similarity index 100% rename from torch/lib/TH/generic/THTensorCopy.c rename to aten/src/TH/generic/THTensorCopy.c diff --git a/torch/lib/TH/generic/THTensorCopy.h b/aten/src/TH/generic/THTensorCopy.h similarity index 100% rename from torch/lib/TH/generic/THTensorCopy.h rename to aten/src/TH/generic/THTensorCopy.h diff --git a/torch/lib/TH/generic/THTensorLapack.c b/aten/src/TH/generic/THTensorLapack.c similarity index 100% rename from torch/lib/TH/generic/THTensorLapack.c rename to aten/src/TH/generic/THTensorLapack.c diff --git a/torch/lib/TH/generic/THTensorLapack.h b/aten/src/TH/generic/THTensorLapack.h similarity index 100% rename from torch/lib/TH/generic/THTensorLapack.h rename to aten/src/TH/generic/THTensorLapack.h diff --git a/torch/lib/TH/generic/THTensorMath.c b/aten/src/TH/generic/THTensorMath.c similarity index 100% rename from torch/lib/TH/generic/THTensorMath.c rename to aten/src/TH/generic/THTensorMath.c diff --git a/torch/lib/TH/generic/THTensorMath.h b/aten/src/TH/generic/THTensorMath.h similarity index 100% rename from torch/lib/TH/generic/THTensorMath.h rename to aten/src/TH/generic/THTensorMath.h diff --git a/torch/lib/TH/generic/THTensorRandom.c b/aten/src/TH/generic/THTensorRandom.c similarity index 100% rename from torch/lib/TH/generic/THTensorRandom.c rename to aten/src/TH/generic/THTensorRandom.c diff --git a/torch/lib/TH/generic/THTensorRandom.h b/aten/src/TH/generic/THTensorRandom.h similarity index 100% rename from torch/lib/TH/generic/THTensorRandom.h rename to aten/src/TH/generic/THTensorRandom.h diff --git a/torch/lib/TH/generic/THVector.h b/aten/src/TH/generic/THVector.h similarity index 100% rename from torch/lib/TH/generic/THVector.h rename to aten/src/TH/generic/THVector.h diff --git a/torch/lib/TH/generic/THVectorDefault.c b/aten/src/TH/generic/THVectorDefault.c similarity index 100% rename from torch/lib/TH/generic/THVectorDefault.c rename to aten/src/TH/generic/THVectorDefault.c diff --git a/torch/lib/TH/generic/THVectorDispatch.c b/aten/src/TH/generic/THVectorDispatch.c similarity index 100% rename from torch/lib/TH/generic/THVectorDispatch.c rename to aten/src/TH/generic/THVectorDispatch.c diff --git a/torch/lib/TH/generic/simd/common_simd.h b/aten/src/TH/generic/simd/common_simd.h similarity index 100% rename from torch/lib/TH/generic/simd/common_simd.h rename to aten/src/TH/generic/simd/common_simd.h diff --git a/torch/lib/TH/generic/simd/convolve.c b/aten/src/TH/generic/simd/convolve.c similarity index 100% rename from torch/lib/TH/generic/simd/convolve.c rename to aten/src/TH/generic/simd/convolve.c diff --git a/torch/lib/TH/generic/simd/convolve.h b/aten/src/TH/generic/simd/convolve.h similarity index 100% rename from torch/lib/TH/generic/simd/convolve.h rename to aten/src/TH/generic/simd/convolve.h diff --git a/torch/lib/TH/generic/simd/convolve5x5_avx.c b/aten/src/TH/generic/simd/convolve5x5_avx.c similarity index 100% rename from torch/lib/TH/generic/simd/convolve5x5_avx.c rename to aten/src/TH/generic/simd/convolve5x5_avx.c diff --git a/torch/lib/TH/generic/simd/convolve5x5_sse.c b/aten/src/TH/generic/simd/convolve5x5_sse.c similarity index 100% rename from torch/lib/TH/generic/simd/convolve5x5_sse.c rename to aten/src/TH/generic/simd/convolve5x5_sse.c diff --git a/torch/lib/TH/generic/simd/simd.h b/aten/src/TH/generic/simd/simd.h similarity index 100% rename from torch/lib/TH/generic/simd/simd.h rename to aten/src/TH/generic/simd/simd.h diff --git a/torch/lib/TH/vector/AVX.c b/aten/src/TH/vector/AVX.c similarity index 100% rename from torch/lib/TH/vector/AVX.c rename to aten/src/TH/vector/AVX.c diff --git a/torch/lib/TH/vector/AVX.h b/aten/src/TH/vector/AVX.h similarity index 100% rename from torch/lib/TH/vector/AVX.h rename to aten/src/TH/vector/AVX.h diff --git a/torch/lib/TH/vector/AVX2.c b/aten/src/TH/vector/AVX2.c similarity index 100% rename from torch/lib/TH/vector/AVX2.c rename to aten/src/TH/vector/AVX2.c diff --git a/torch/lib/TH/vector/AVX2.h b/aten/src/TH/vector/AVX2.h similarity index 100% rename from torch/lib/TH/vector/AVX2.h rename to aten/src/TH/vector/AVX2.h diff --git a/torch/lib/TH/vector/NEON.c b/aten/src/TH/vector/NEON.c similarity index 100% rename from torch/lib/TH/vector/NEON.c rename to aten/src/TH/vector/NEON.c diff --git a/torch/lib/TH/vector/SSE.c b/aten/src/TH/vector/SSE.c similarity index 100% rename from torch/lib/TH/vector/SSE.c rename to aten/src/TH/vector/SSE.c diff --git a/torch/lib/TH/vector/VSX.c b/aten/src/TH/vector/VSX.c similarity index 100% rename from torch/lib/TH/vector/VSX.c rename to aten/src/TH/vector/VSX.c diff --git a/torch/lib/THC/CMakeLists.txt b/aten/src/THC/CMakeLists.txt similarity index 100% rename from torch/lib/THC/CMakeLists.txt rename to aten/src/THC/CMakeLists.txt diff --git a/torch/lib/THC/THC.h b/aten/src/THC/THC.h similarity index 100% rename from torch/lib/THC/THC.h rename to aten/src/THC/THC.h diff --git a/torch/lib/THC/THCAllocator.c b/aten/src/THC/THCAllocator.c similarity index 100% rename from torch/lib/THC/THCAllocator.c rename to aten/src/THC/THCAllocator.c diff --git a/torch/lib/THC/THCAllocator.h b/aten/src/THC/THCAllocator.h similarity index 100% rename from torch/lib/THC/THCAllocator.h rename to aten/src/THC/THCAllocator.h diff --git a/torch/lib/THC/THCApply.cuh b/aten/src/THC/THCApply.cuh similarity index 100% rename from torch/lib/THC/THCApply.cuh rename to aten/src/THC/THCApply.cuh diff --git a/torch/lib/THC/THCAsmUtils.cuh b/aten/src/THC/THCAsmUtils.cuh similarity index 100% rename from torch/lib/THC/THCAsmUtils.cuh rename to aten/src/THC/THCAsmUtils.cuh diff --git a/torch/lib/THC/THCAtomics.cuh b/aten/src/THC/THCAtomics.cuh similarity index 100% rename from torch/lib/THC/THCAtomics.cuh rename to aten/src/THC/THCAtomics.cuh diff --git a/torch/lib/THC/THCBlas.cu b/aten/src/THC/THCBlas.cu similarity index 100% rename from torch/lib/THC/THCBlas.cu rename to aten/src/THC/THCBlas.cu diff --git a/torch/lib/THC/THCBlas.h b/aten/src/THC/THCBlas.h similarity index 100% rename from torch/lib/THC/THCBlas.h rename to aten/src/THC/THCBlas.h diff --git a/torch/lib/THC/THCCachingAllocator.cpp b/aten/src/THC/THCCachingAllocator.cpp similarity index 100% rename from torch/lib/THC/THCCachingAllocator.cpp rename to aten/src/THC/THCCachingAllocator.cpp diff --git a/torch/lib/THC/THCCachingAllocator.h b/aten/src/THC/THCCachingAllocator.h similarity index 100% rename from torch/lib/THC/THCCachingAllocator.h rename to aten/src/THC/THCCachingAllocator.h diff --git a/torch/lib/THC/THCCachingHostAllocator.cpp b/aten/src/THC/THCCachingHostAllocator.cpp similarity index 100% rename from torch/lib/THC/THCCachingHostAllocator.cpp rename to aten/src/THC/THCCachingHostAllocator.cpp diff --git a/torch/lib/THC/THCCachingHostAllocator.h b/aten/src/THC/THCCachingHostAllocator.h similarity index 100% rename from torch/lib/THC/THCCachingHostAllocator.h rename to aten/src/THC/THCCachingHostAllocator.h diff --git a/torch/lib/THC/THCDeviceTensor-inl.cuh b/aten/src/THC/THCDeviceTensor-inl.cuh similarity index 100% rename from torch/lib/THC/THCDeviceTensor-inl.cuh rename to aten/src/THC/THCDeviceTensor-inl.cuh diff --git a/torch/lib/THC/THCDeviceTensor.cuh b/aten/src/THC/THCDeviceTensor.cuh similarity index 100% rename from torch/lib/THC/THCDeviceTensor.cuh rename to aten/src/THC/THCDeviceTensor.cuh diff --git a/torch/lib/THC/THCDeviceTensorUtils-inl.cuh b/aten/src/THC/THCDeviceTensorUtils-inl.cuh similarity index 100% rename from torch/lib/THC/THCDeviceTensorUtils-inl.cuh rename to aten/src/THC/THCDeviceTensorUtils-inl.cuh diff --git a/torch/lib/THC/THCDeviceTensorUtils.cuh b/aten/src/THC/THCDeviceTensorUtils.cuh similarity index 100% rename from torch/lib/THC/THCDeviceTensorUtils.cuh rename to aten/src/THC/THCDeviceTensorUtils.cuh diff --git a/torch/lib/THC/THCDeviceUtils.cuh b/aten/src/THC/THCDeviceUtils.cuh similarity index 100% rename from torch/lib/THC/THCDeviceUtils.cuh rename to aten/src/THC/THCDeviceUtils.cuh diff --git a/torch/lib/THC/THCGeneral.c b/aten/src/THC/THCGeneral.c similarity index 100% rename from torch/lib/THC/THCGeneral.c rename to aten/src/THC/THCGeneral.c diff --git a/torch/lib/THC/THCGeneral.h.in b/aten/src/THC/THCGeneral.h.in similarity index 100% rename from torch/lib/THC/THCGeneral.h.in rename to aten/src/THC/THCGeneral.h.in diff --git a/torch/lib/THC/THCGenerateAllTypes.h b/aten/src/THC/THCGenerateAllTypes.h similarity index 100% rename from torch/lib/THC/THCGenerateAllTypes.h rename to aten/src/THC/THCGenerateAllTypes.h diff --git a/torch/lib/THC/THCGenerateByteType.h b/aten/src/THC/THCGenerateByteType.h similarity index 100% rename from torch/lib/THC/THCGenerateByteType.h rename to aten/src/THC/THCGenerateByteType.h diff --git a/torch/lib/THC/THCGenerateCharType.h b/aten/src/THC/THCGenerateCharType.h similarity index 100% rename from torch/lib/THC/THCGenerateCharType.h rename to aten/src/THC/THCGenerateCharType.h diff --git a/torch/lib/THC/THCGenerateDoubleType.h b/aten/src/THC/THCGenerateDoubleType.h similarity index 100% rename from torch/lib/THC/THCGenerateDoubleType.h rename to aten/src/THC/THCGenerateDoubleType.h diff --git a/torch/lib/THC/THCGenerateFloatType.h b/aten/src/THC/THCGenerateFloatType.h similarity index 100% rename from torch/lib/THC/THCGenerateFloatType.h rename to aten/src/THC/THCGenerateFloatType.h diff --git a/torch/lib/THC/THCGenerateFloatTypes.h b/aten/src/THC/THCGenerateFloatTypes.h similarity index 100% rename from torch/lib/THC/THCGenerateFloatTypes.h rename to aten/src/THC/THCGenerateFloatTypes.h diff --git a/torch/lib/THC/THCGenerateHalfType.h b/aten/src/THC/THCGenerateHalfType.h similarity index 100% rename from torch/lib/THC/THCGenerateHalfType.h rename to aten/src/THC/THCGenerateHalfType.h diff --git a/torch/lib/THC/THCGenerateIntType.h b/aten/src/THC/THCGenerateIntType.h similarity index 100% rename from torch/lib/THC/THCGenerateIntType.h rename to aten/src/THC/THCGenerateIntType.h diff --git a/torch/lib/THC/THCGenerateLongType.h b/aten/src/THC/THCGenerateLongType.h similarity index 100% rename from torch/lib/THC/THCGenerateLongType.h rename to aten/src/THC/THCGenerateLongType.h diff --git a/torch/lib/THC/THCGenerateShortType.h b/aten/src/THC/THCGenerateShortType.h similarity index 100% rename from torch/lib/THC/THCGenerateShortType.h rename to aten/src/THC/THCGenerateShortType.h diff --git a/torch/lib/THC/THCHalf.cu b/aten/src/THC/THCHalf.cu similarity index 100% rename from torch/lib/THC/THCHalf.cu rename to aten/src/THC/THCHalf.cu diff --git a/torch/lib/THC/THCHalf.h b/aten/src/THC/THCHalf.h similarity index 100% rename from torch/lib/THC/THCHalf.h rename to aten/src/THC/THCHalf.h diff --git a/torch/lib/THC/THCNumerics.cuh b/aten/src/THC/THCNumerics.cuh similarity index 100% rename from torch/lib/THC/THCNumerics.cuh rename to aten/src/THC/THCNumerics.cuh diff --git a/torch/lib/THC/THCReduce.cuh b/aten/src/THC/THCReduce.cuh similarity index 100% rename from torch/lib/THC/THCReduce.cuh rename to aten/src/THC/THCReduce.cuh diff --git a/torch/lib/THC/THCReduceAll.cuh b/aten/src/THC/THCReduceAll.cuh similarity index 100% rename from torch/lib/THC/THCReduceAll.cuh rename to aten/src/THC/THCReduceAll.cuh diff --git a/torch/lib/THC/THCReduceApplyUtils.cu b/aten/src/THC/THCReduceApplyUtils.cu similarity index 100% rename from torch/lib/THC/THCReduceApplyUtils.cu rename to aten/src/THC/THCReduceApplyUtils.cu diff --git a/torch/lib/THC/THCReduceApplyUtils.cuh b/aten/src/THC/THCReduceApplyUtils.cuh similarity index 100% rename from torch/lib/THC/THCReduceApplyUtils.cuh rename to aten/src/THC/THCReduceApplyUtils.cuh diff --git a/torch/lib/THC/THCScanUtils.cuh b/aten/src/THC/THCScanUtils.cuh similarity index 100% rename from torch/lib/THC/THCScanUtils.cuh rename to aten/src/THC/THCScanUtils.cuh diff --git a/torch/lib/THC/THCSleep.cu b/aten/src/THC/THCSleep.cu similarity index 100% rename from torch/lib/THC/THCSleep.cu rename to aten/src/THC/THCSleep.cu diff --git a/torch/lib/THC/THCSleep.h b/aten/src/THC/THCSleep.h similarity index 100% rename from torch/lib/THC/THCSleep.h rename to aten/src/THC/THCSleep.h diff --git a/torch/lib/THC/THCSortUtils.cu b/aten/src/THC/THCSortUtils.cu similarity index 100% rename from torch/lib/THC/THCSortUtils.cu rename to aten/src/THC/THCSortUtils.cu diff --git a/torch/lib/THC/THCSortUtils.cuh b/aten/src/THC/THCSortUtils.cuh similarity index 100% rename from torch/lib/THC/THCSortUtils.cuh rename to aten/src/THC/THCSortUtils.cuh diff --git a/torch/lib/THC/THCStorage.c b/aten/src/THC/THCStorage.c similarity index 100% rename from torch/lib/THC/THCStorage.c rename to aten/src/THC/THCStorage.c diff --git a/torch/lib/THC/THCStorage.cu b/aten/src/THC/THCStorage.cu similarity index 100% rename from torch/lib/THC/THCStorage.cu rename to aten/src/THC/THCStorage.cu diff --git a/torch/lib/THC/THCStorage.h b/aten/src/THC/THCStorage.h similarity index 100% rename from torch/lib/THC/THCStorage.h rename to aten/src/THC/THCStorage.h diff --git a/torch/lib/THC/THCStorageCopy.c b/aten/src/THC/THCStorageCopy.c similarity index 100% rename from torch/lib/THC/THCStorageCopy.c rename to aten/src/THC/THCStorageCopy.c diff --git a/torch/lib/THC/THCStorageCopy.cu b/aten/src/THC/THCStorageCopy.cu similarity index 100% rename from torch/lib/THC/THCStorageCopy.cu rename to aten/src/THC/THCStorageCopy.cu diff --git a/torch/lib/THC/THCStorageCopy.h b/aten/src/THC/THCStorageCopy.h similarity index 100% rename from torch/lib/THC/THCStorageCopy.h rename to aten/src/THC/THCStorageCopy.h diff --git a/torch/lib/THC/THCStream.cpp b/aten/src/THC/THCStream.cpp similarity index 100% rename from torch/lib/THC/THCStream.cpp rename to aten/src/THC/THCStream.cpp diff --git a/torch/lib/THC/THCStream.h b/aten/src/THC/THCStream.h similarity index 100% rename from torch/lib/THC/THCStream.h rename to aten/src/THC/THCStream.h diff --git a/torch/lib/THC/THCTensor.c b/aten/src/THC/THCTensor.c similarity index 100% rename from torch/lib/THC/THCTensor.c rename to aten/src/THC/THCTensor.c diff --git a/torch/lib/THC/THCTensor.cu b/aten/src/THC/THCTensor.cu similarity index 100% rename from torch/lib/THC/THCTensor.cu rename to aten/src/THC/THCTensor.cu diff --git a/torch/lib/THC/THCTensor.h b/aten/src/THC/THCTensor.h similarity index 100% rename from torch/lib/THC/THCTensor.h rename to aten/src/THC/THCTensor.h diff --git a/torch/lib/THC/THCTensorConv.cu b/aten/src/THC/THCTensorConv.cu similarity index 100% rename from torch/lib/THC/THCTensorConv.cu rename to aten/src/THC/THCTensorConv.cu diff --git a/torch/lib/THC/THCTensorConv.h b/aten/src/THC/THCTensorConv.h similarity index 100% rename from torch/lib/THC/THCTensorConv.h rename to aten/src/THC/THCTensorConv.h diff --git a/torch/lib/THC/THCTensorCopy.c b/aten/src/THC/THCTensorCopy.c similarity index 100% rename from torch/lib/THC/THCTensorCopy.c rename to aten/src/THC/THCTensorCopy.c diff --git a/torch/lib/THC/THCTensorCopy.cu b/aten/src/THC/THCTensorCopy.cu similarity index 100% rename from torch/lib/THC/THCTensorCopy.cu rename to aten/src/THC/THCTensorCopy.cu diff --git a/torch/lib/THC/THCTensorCopy.h b/aten/src/THC/THCTensorCopy.h similarity index 100% rename from torch/lib/THC/THCTensorCopy.h rename to aten/src/THC/THCTensorCopy.h diff --git a/torch/lib/THC/THCTensorIndex.cu b/aten/src/THC/THCTensorIndex.cu similarity index 100% rename from torch/lib/THC/THCTensorIndex.cu rename to aten/src/THC/THCTensorIndex.cu diff --git a/torch/lib/THC/THCTensorInfo.cuh b/aten/src/THC/THCTensorInfo.cuh similarity index 100% rename from torch/lib/THC/THCTensorInfo.cuh rename to aten/src/THC/THCTensorInfo.cuh diff --git a/torch/lib/THC/THCTensorMasked.cuh b/aten/src/THC/THCTensorMasked.cuh similarity index 100% rename from torch/lib/THC/THCTensorMasked.cuh rename to aten/src/THC/THCTensorMasked.cuh diff --git a/torch/lib/THC/THCTensorMath.cu b/aten/src/THC/THCTensorMath.cu similarity index 100% rename from torch/lib/THC/THCTensorMath.cu rename to aten/src/THC/THCTensorMath.cu diff --git a/torch/lib/THC/THCTensorMath.cuh b/aten/src/THC/THCTensorMath.cuh similarity index 100% rename from torch/lib/THC/THCTensorMath.cuh rename to aten/src/THC/THCTensorMath.cuh diff --git a/torch/lib/THC/THCTensorMath.h b/aten/src/THC/THCTensorMath.h similarity index 100% rename from torch/lib/THC/THCTensorMath.h rename to aten/src/THC/THCTensorMath.h diff --git a/torch/lib/THC/THCTensorMath2.cu b/aten/src/THC/THCTensorMath2.cu similarity index 100% rename from torch/lib/THC/THCTensorMath2.cu rename to aten/src/THC/THCTensorMath2.cu diff --git a/torch/lib/THC/THCTensorMathBlas.cu b/aten/src/THC/THCTensorMathBlas.cu similarity index 100% rename from torch/lib/THC/THCTensorMathBlas.cu rename to aten/src/THC/THCTensorMathBlas.cu diff --git a/torch/lib/THC/THCTensorMathCompare.cuh b/aten/src/THC/THCTensorMathCompare.cuh similarity index 100% rename from torch/lib/THC/THCTensorMathCompare.cuh rename to aten/src/THC/THCTensorMathCompare.cuh diff --git a/torch/lib/THC/THCTensorMathCompareT.cuh b/aten/src/THC/THCTensorMathCompareT.cuh similarity index 100% rename from torch/lib/THC/THCTensorMathCompareT.cuh rename to aten/src/THC/THCTensorMathCompareT.cuh diff --git a/torch/lib/THC/THCTensorMathMagma.cu b/aten/src/THC/THCTensorMathMagma.cu similarity index 100% rename from torch/lib/THC/THCTensorMathMagma.cu rename to aten/src/THC/THCTensorMathMagma.cu diff --git a/torch/lib/THC/THCTensorMathMagma.cuh b/aten/src/THC/THCTensorMathMagma.cuh similarity index 100% rename from torch/lib/THC/THCTensorMathMagma.cuh rename to aten/src/THC/THCTensorMathMagma.cuh diff --git a/torch/lib/THC/THCTensorMathPairwise.cu b/aten/src/THC/THCTensorMathPairwise.cu similarity index 100% rename from torch/lib/THC/THCTensorMathPairwise.cu rename to aten/src/THC/THCTensorMathPairwise.cu diff --git a/torch/lib/THC/THCTensorMathPointwise.cuh b/aten/src/THC/THCTensorMathPointwise.cuh similarity index 100% rename from torch/lib/THC/THCTensorMathPointwise.cuh rename to aten/src/THC/THCTensorMathPointwise.cuh diff --git a/torch/lib/THC/THCTensorMathReduce.cu b/aten/src/THC/THCTensorMathReduce.cu similarity index 100% rename from torch/lib/THC/THCTensorMathReduce.cu rename to aten/src/THC/THCTensorMathReduce.cu diff --git a/torch/lib/THC/THCTensorMathReduce.cuh b/aten/src/THC/THCTensorMathReduce.cuh similarity index 100% rename from torch/lib/THC/THCTensorMathReduce.cuh rename to aten/src/THC/THCTensorMathReduce.cuh diff --git a/torch/lib/THC/THCTensorMathScan.cu b/aten/src/THC/THCTensorMathScan.cu similarity index 100% rename from torch/lib/THC/THCTensorMathScan.cu rename to aten/src/THC/THCTensorMathScan.cu diff --git a/torch/lib/THC/THCTensorMode.cu b/aten/src/THC/THCTensorMode.cu similarity index 100% rename from torch/lib/THC/THCTensorMode.cu rename to aten/src/THC/THCTensorMode.cu diff --git a/torch/lib/THC/THCTensorMode.cuh b/aten/src/THC/THCTensorMode.cuh similarity index 100% rename from torch/lib/THC/THCTensorMode.cuh rename to aten/src/THC/THCTensorMode.cuh diff --git a/torch/lib/THC/THCTensorRandom.cpp b/aten/src/THC/THCTensorRandom.cpp similarity index 100% rename from torch/lib/THC/THCTensorRandom.cpp rename to aten/src/THC/THCTensorRandom.cpp diff --git a/torch/lib/THC/THCTensorRandom.cu b/aten/src/THC/THCTensorRandom.cu similarity index 100% rename from torch/lib/THC/THCTensorRandom.cu rename to aten/src/THC/THCTensorRandom.cu diff --git a/torch/lib/THC/THCTensorRandom.cuh b/aten/src/THC/THCTensorRandom.cuh similarity index 100% rename from torch/lib/THC/THCTensorRandom.cuh rename to aten/src/THC/THCTensorRandom.cuh diff --git a/torch/lib/THC/THCTensorRandom.h b/aten/src/THC/THCTensorRandom.h similarity index 100% rename from torch/lib/THC/THCTensorRandom.h rename to aten/src/THC/THCTensorRandom.h diff --git a/torch/lib/THC/THCTensorScatterGather.cu b/aten/src/THC/THCTensorScatterGather.cu similarity index 100% rename from torch/lib/THC/THCTensorScatterGather.cu rename to aten/src/THC/THCTensorScatterGather.cu diff --git a/torch/lib/THC/THCTensorSort.cu b/aten/src/THC/THCTensorSort.cu similarity index 100% rename from torch/lib/THC/THCTensorSort.cu rename to aten/src/THC/THCTensorSort.cu diff --git a/torch/lib/THC/THCTensorSort.cuh b/aten/src/THC/THCTensorSort.cuh similarity index 100% rename from torch/lib/THC/THCTensorSort.cuh rename to aten/src/THC/THCTensorSort.cuh diff --git a/torch/lib/THC/THCTensorTopK.cu b/aten/src/THC/THCTensorTopK.cu similarity index 100% rename from torch/lib/THC/THCTensorTopK.cu rename to aten/src/THC/THCTensorTopK.cu diff --git a/torch/lib/THC/THCTensorTopK.cuh b/aten/src/THC/THCTensorTopK.cuh similarity index 100% rename from torch/lib/THC/THCTensorTopK.cuh rename to aten/src/THC/THCTensorTopK.cuh diff --git a/torch/lib/THC/THCTensorTypeUtils.cu b/aten/src/THC/THCTensorTypeUtils.cu similarity index 100% rename from torch/lib/THC/THCTensorTypeUtils.cu rename to aten/src/THC/THCTensorTypeUtils.cu diff --git a/torch/lib/THC/THCTensorTypeUtils.cuh b/aten/src/THC/THCTensorTypeUtils.cuh similarity index 100% rename from torch/lib/THC/THCTensorTypeUtils.cuh rename to aten/src/THC/THCTensorTypeUtils.cuh diff --git a/torch/lib/THC/THCThreadLocal.c b/aten/src/THC/THCThreadLocal.c similarity index 100% rename from torch/lib/THC/THCThreadLocal.c rename to aten/src/THC/THCThreadLocal.c diff --git a/torch/lib/THC/THCThreadLocal.h b/aten/src/THC/THCThreadLocal.h similarity index 100% rename from torch/lib/THC/THCThreadLocal.h rename to aten/src/THC/THCThreadLocal.h diff --git a/torch/lib/THC/THCThrustAllocator.cuh b/aten/src/THC/THCThrustAllocator.cuh similarity index 100% rename from torch/lib/THC/THCThrustAllocator.cuh rename to aten/src/THC/THCThrustAllocator.cuh diff --git a/torch/lib/THC/cmake/FindMAGMA.cmake b/aten/src/THC/cmake/FindMAGMA.cmake similarity index 100% rename from torch/lib/THC/cmake/FindMAGMA.cmake rename to aten/src/THC/cmake/FindMAGMA.cmake diff --git a/torch/lib/THC/cmake/select_compute_arch.cmake b/aten/src/THC/cmake/select_compute_arch.cmake similarity index 100% rename from torch/lib/THC/cmake/select_compute_arch.cmake rename to aten/src/THC/cmake/select_compute_arch.cmake diff --git a/torch/lib/THC/generated/THCTensorMaskedByte.cu b/aten/src/THC/generated/THCTensorMaskedByte.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMaskedByte.cu rename to aten/src/THC/generated/THCTensorMaskedByte.cu diff --git a/torch/lib/THC/generated/THCTensorMaskedChar.cu b/aten/src/THC/generated/THCTensorMaskedChar.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMaskedChar.cu rename to aten/src/THC/generated/THCTensorMaskedChar.cu diff --git a/torch/lib/THC/generated/THCTensorMaskedDouble.cu b/aten/src/THC/generated/THCTensorMaskedDouble.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMaskedDouble.cu rename to aten/src/THC/generated/THCTensorMaskedDouble.cu diff --git a/torch/lib/THC/generated/THCTensorMaskedFloat.cu b/aten/src/THC/generated/THCTensorMaskedFloat.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMaskedFloat.cu rename to aten/src/THC/generated/THCTensorMaskedFloat.cu diff --git a/torch/lib/THC/generated/THCTensorMaskedHalf.cu b/aten/src/THC/generated/THCTensorMaskedHalf.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMaskedHalf.cu rename to aten/src/THC/generated/THCTensorMaskedHalf.cu diff --git a/torch/lib/THC/generated/THCTensorMaskedInt.cu b/aten/src/THC/generated/THCTensorMaskedInt.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMaskedInt.cu rename to aten/src/THC/generated/THCTensorMaskedInt.cu diff --git a/torch/lib/THC/generated/THCTensorMaskedLong.cu b/aten/src/THC/generated/THCTensorMaskedLong.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMaskedLong.cu rename to aten/src/THC/generated/THCTensorMaskedLong.cu diff --git a/torch/lib/THC/generated/THCTensorMaskedShort.cu b/aten/src/THC/generated/THCTensorMaskedShort.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMaskedShort.cu rename to aten/src/THC/generated/THCTensorMaskedShort.cu diff --git a/torch/lib/THC/generated/THCTensorMathCompareByte.cu b/aten/src/THC/generated/THCTensorMathCompareByte.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathCompareByte.cu rename to aten/src/THC/generated/THCTensorMathCompareByte.cu diff --git a/torch/lib/THC/generated/THCTensorMathCompareChar.cu b/aten/src/THC/generated/THCTensorMathCompareChar.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathCompareChar.cu rename to aten/src/THC/generated/THCTensorMathCompareChar.cu diff --git a/torch/lib/THC/generated/THCTensorMathCompareDouble.cu b/aten/src/THC/generated/THCTensorMathCompareDouble.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathCompareDouble.cu rename to aten/src/THC/generated/THCTensorMathCompareDouble.cu diff --git a/torch/lib/THC/generated/THCTensorMathCompareFloat.cu b/aten/src/THC/generated/THCTensorMathCompareFloat.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathCompareFloat.cu rename to aten/src/THC/generated/THCTensorMathCompareFloat.cu diff --git a/torch/lib/THC/generated/THCTensorMathCompareHalf.cu b/aten/src/THC/generated/THCTensorMathCompareHalf.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathCompareHalf.cu rename to aten/src/THC/generated/THCTensorMathCompareHalf.cu diff --git a/torch/lib/THC/generated/THCTensorMathCompareInt.cu b/aten/src/THC/generated/THCTensorMathCompareInt.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathCompareInt.cu rename to aten/src/THC/generated/THCTensorMathCompareInt.cu diff --git a/torch/lib/THC/generated/THCTensorMathCompareLong.cu b/aten/src/THC/generated/THCTensorMathCompareLong.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathCompareLong.cu rename to aten/src/THC/generated/THCTensorMathCompareLong.cu diff --git a/torch/lib/THC/generated/THCTensorMathCompareShort.cu b/aten/src/THC/generated/THCTensorMathCompareShort.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathCompareShort.cu rename to aten/src/THC/generated/THCTensorMathCompareShort.cu diff --git a/torch/lib/THC/generated/THCTensorMathCompareTByte.cu b/aten/src/THC/generated/THCTensorMathCompareTByte.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathCompareTByte.cu rename to aten/src/THC/generated/THCTensorMathCompareTByte.cu diff --git a/torch/lib/THC/generated/THCTensorMathCompareTChar.cu b/aten/src/THC/generated/THCTensorMathCompareTChar.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathCompareTChar.cu rename to aten/src/THC/generated/THCTensorMathCompareTChar.cu diff --git a/torch/lib/THC/generated/THCTensorMathCompareTDouble.cu b/aten/src/THC/generated/THCTensorMathCompareTDouble.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathCompareTDouble.cu rename to aten/src/THC/generated/THCTensorMathCompareTDouble.cu diff --git a/torch/lib/THC/generated/THCTensorMathCompareTFloat.cu b/aten/src/THC/generated/THCTensorMathCompareTFloat.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathCompareTFloat.cu rename to aten/src/THC/generated/THCTensorMathCompareTFloat.cu diff --git a/torch/lib/THC/generated/THCTensorMathCompareTHalf.cu b/aten/src/THC/generated/THCTensorMathCompareTHalf.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathCompareTHalf.cu rename to aten/src/THC/generated/THCTensorMathCompareTHalf.cu diff --git a/torch/lib/THC/generated/THCTensorMathCompareTInt.cu b/aten/src/THC/generated/THCTensorMathCompareTInt.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathCompareTInt.cu rename to aten/src/THC/generated/THCTensorMathCompareTInt.cu diff --git a/torch/lib/THC/generated/THCTensorMathCompareTLong.cu b/aten/src/THC/generated/THCTensorMathCompareTLong.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathCompareTLong.cu rename to aten/src/THC/generated/THCTensorMathCompareTLong.cu diff --git a/torch/lib/THC/generated/THCTensorMathCompareTShort.cu b/aten/src/THC/generated/THCTensorMathCompareTShort.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathCompareTShort.cu rename to aten/src/THC/generated/THCTensorMathCompareTShort.cu diff --git a/torch/lib/THC/generated/THCTensorMathPointwiseByte.cu b/aten/src/THC/generated/THCTensorMathPointwiseByte.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathPointwiseByte.cu rename to aten/src/THC/generated/THCTensorMathPointwiseByte.cu diff --git a/torch/lib/THC/generated/THCTensorMathPointwiseChar.cu b/aten/src/THC/generated/THCTensorMathPointwiseChar.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathPointwiseChar.cu rename to aten/src/THC/generated/THCTensorMathPointwiseChar.cu diff --git a/torch/lib/THC/generated/THCTensorMathPointwiseDouble.cu b/aten/src/THC/generated/THCTensorMathPointwiseDouble.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathPointwiseDouble.cu rename to aten/src/THC/generated/THCTensorMathPointwiseDouble.cu diff --git a/torch/lib/THC/generated/THCTensorMathPointwiseFloat.cu b/aten/src/THC/generated/THCTensorMathPointwiseFloat.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathPointwiseFloat.cu rename to aten/src/THC/generated/THCTensorMathPointwiseFloat.cu diff --git a/torch/lib/THC/generated/THCTensorMathPointwiseHalf.cu b/aten/src/THC/generated/THCTensorMathPointwiseHalf.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathPointwiseHalf.cu rename to aten/src/THC/generated/THCTensorMathPointwiseHalf.cu diff --git a/torch/lib/THC/generated/THCTensorMathPointwiseInt.cu b/aten/src/THC/generated/THCTensorMathPointwiseInt.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathPointwiseInt.cu rename to aten/src/THC/generated/THCTensorMathPointwiseInt.cu diff --git a/torch/lib/THC/generated/THCTensorMathPointwiseLong.cu b/aten/src/THC/generated/THCTensorMathPointwiseLong.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathPointwiseLong.cu rename to aten/src/THC/generated/THCTensorMathPointwiseLong.cu diff --git a/torch/lib/THC/generated/THCTensorMathPointwiseShort.cu b/aten/src/THC/generated/THCTensorMathPointwiseShort.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathPointwiseShort.cu rename to aten/src/THC/generated/THCTensorMathPointwiseShort.cu diff --git a/torch/lib/THC/generated/THCTensorMathReduceByte.cu b/aten/src/THC/generated/THCTensorMathReduceByte.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathReduceByte.cu rename to aten/src/THC/generated/THCTensorMathReduceByte.cu diff --git a/torch/lib/THC/generated/THCTensorMathReduceChar.cu b/aten/src/THC/generated/THCTensorMathReduceChar.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathReduceChar.cu rename to aten/src/THC/generated/THCTensorMathReduceChar.cu diff --git a/torch/lib/THC/generated/THCTensorMathReduceDouble.cu b/aten/src/THC/generated/THCTensorMathReduceDouble.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathReduceDouble.cu rename to aten/src/THC/generated/THCTensorMathReduceDouble.cu diff --git a/torch/lib/THC/generated/THCTensorMathReduceFloat.cu b/aten/src/THC/generated/THCTensorMathReduceFloat.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathReduceFloat.cu rename to aten/src/THC/generated/THCTensorMathReduceFloat.cu diff --git a/torch/lib/THC/generated/THCTensorMathReduceHalf.cu b/aten/src/THC/generated/THCTensorMathReduceHalf.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathReduceHalf.cu rename to aten/src/THC/generated/THCTensorMathReduceHalf.cu diff --git a/torch/lib/THC/generated/THCTensorMathReduceInt.cu b/aten/src/THC/generated/THCTensorMathReduceInt.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathReduceInt.cu rename to aten/src/THC/generated/THCTensorMathReduceInt.cu diff --git a/torch/lib/THC/generated/THCTensorMathReduceLong.cu b/aten/src/THC/generated/THCTensorMathReduceLong.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathReduceLong.cu rename to aten/src/THC/generated/THCTensorMathReduceLong.cu diff --git a/torch/lib/THC/generated/THCTensorMathReduceShort.cu b/aten/src/THC/generated/THCTensorMathReduceShort.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorMathReduceShort.cu rename to aten/src/THC/generated/THCTensorMathReduceShort.cu diff --git a/torch/lib/THC/generated/THCTensorSortByte.cu b/aten/src/THC/generated/THCTensorSortByte.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorSortByte.cu rename to aten/src/THC/generated/THCTensorSortByte.cu diff --git a/torch/lib/THC/generated/THCTensorSortChar.cu b/aten/src/THC/generated/THCTensorSortChar.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorSortChar.cu rename to aten/src/THC/generated/THCTensorSortChar.cu diff --git a/torch/lib/THC/generated/THCTensorSortDouble.cu b/aten/src/THC/generated/THCTensorSortDouble.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorSortDouble.cu rename to aten/src/THC/generated/THCTensorSortDouble.cu diff --git a/torch/lib/THC/generated/THCTensorSortFloat.cu b/aten/src/THC/generated/THCTensorSortFloat.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorSortFloat.cu rename to aten/src/THC/generated/THCTensorSortFloat.cu diff --git a/torch/lib/THC/generated/THCTensorSortHalf.cu b/aten/src/THC/generated/THCTensorSortHalf.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorSortHalf.cu rename to aten/src/THC/generated/THCTensorSortHalf.cu diff --git a/torch/lib/THC/generated/THCTensorSortInt.cu b/aten/src/THC/generated/THCTensorSortInt.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorSortInt.cu rename to aten/src/THC/generated/THCTensorSortInt.cu diff --git a/torch/lib/THC/generated/THCTensorSortLong.cu b/aten/src/THC/generated/THCTensorSortLong.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorSortLong.cu rename to aten/src/THC/generated/THCTensorSortLong.cu diff --git a/torch/lib/THC/generated/THCTensorSortShort.cu b/aten/src/THC/generated/THCTensorSortShort.cu similarity index 100% rename from torch/lib/THC/generated/THCTensorSortShort.cu rename to aten/src/THC/generated/THCTensorSortShort.cu diff --git a/torch/lib/THC/generic/THCDeviceTensorUtils.cu b/aten/src/THC/generic/THCDeviceTensorUtils.cu similarity index 100% rename from torch/lib/THC/generic/THCDeviceTensorUtils.cu rename to aten/src/THC/generic/THCDeviceTensorUtils.cu diff --git a/torch/lib/THC/generic/THCStorage.c b/aten/src/THC/generic/THCStorage.c similarity index 100% rename from torch/lib/THC/generic/THCStorage.c rename to aten/src/THC/generic/THCStorage.c diff --git a/torch/lib/THC/generic/THCStorage.cu b/aten/src/THC/generic/THCStorage.cu similarity index 100% rename from torch/lib/THC/generic/THCStorage.cu rename to aten/src/THC/generic/THCStorage.cu diff --git a/torch/lib/THC/generic/THCStorage.h b/aten/src/THC/generic/THCStorage.h similarity index 100% rename from torch/lib/THC/generic/THCStorage.h rename to aten/src/THC/generic/THCStorage.h diff --git a/torch/lib/THC/generic/THCStorageCopy.c b/aten/src/THC/generic/THCStorageCopy.c similarity index 100% rename from torch/lib/THC/generic/THCStorageCopy.c rename to aten/src/THC/generic/THCStorageCopy.c diff --git a/torch/lib/THC/generic/THCStorageCopy.cu b/aten/src/THC/generic/THCStorageCopy.cu similarity index 100% rename from torch/lib/THC/generic/THCStorageCopy.cu rename to aten/src/THC/generic/THCStorageCopy.cu diff --git a/torch/lib/THC/generic/THCStorageCopy.h b/aten/src/THC/generic/THCStorageCopy.h similarity index 100% rename from torch/lib/THC/generic/THCStorageCopy.h rename to aten/src/THC/generic/THCStorageCopy.h diff --git a/torch/lib/THC/generic/THCTensor.c b/aten/src/THC/generic/THCTensor.c similarity index 100% rename from torch/lib/THC/generic/THCTensor.c rename to aten/src/THC/generic/THCTensor.c diff --git a/torch/lib/THC/generic/THCTensor.cu b/aten/src/THC/generic/THCTensor.cu similarity index 100% rename from torch/lib/THC/generic/THCTensor.cu rename to aten/src/THC/generic/THCTensor.cu diff --git a/torch/lib/THC/generic/THCTensor.h b/aten/src/THC/generic/THCTensor.h similarity index 100% rename from torch/lib/THC/generic/THCTensor.h rename to aten/src/THC/generic/THCTensor.h diff --git a/torch/lib/THC/generic/THCTensorCopy.c b/aten/src/THC/generic/THCTensorCopy.c similarity index 100% rename from torch/lib/THC/generic/THCTensorCopy.c rename to aten/src/THC/generic/THCTensorCopy.c diff --git a/torch/lib/THC/generic/THCTensorCopy.cu b/aten/src/THC/generic/THCTensorCopy.cu similarity index 100% rename from torch/lib/THC/generic/THCTensorCopy.cu rename to aten/src/THC/generic/THCTensorCopy.cu diff --git a/torch/lib/THC/generic/THCTensorCopy.h b/aten/src/THC/generic/THCTensorCopy.h similarity index 100% rename from torch/lib/THC/generic/THCTensorCopy.h rename to aten/src/THC/generic/THCTensorCopy.h diff --git a/torch/lib/THC/generic/THCTensorIndex.cu b/aten/src/THC/generic/THCTensorIndex.cu similarity index 100% rename from torch/lib/THC/generic/THCTensorIndex.cu rename to aten/src/THC/generic/THCTensorIndex.cu diff --git a/torch/lib/THC/generic/THCTensorIndex.h b/aten/src/THC/generic/THCTensorIndex.h similarity index 100% rename from torch/lib/THC/generic/THCTensorIndex.h rename to aten/src/THC/generic/THCTensorIndex.h diff --git a/torch/lib/THC/generic/THCTensorMasked.cu b/aten/src/THC/generic/THCTensorMasked.cu similarity index 100% rename from torch/lib/THC/generic/THCTensorMasked.cu rename to aten/src/THC/generic/THCTensorMasked.cu diff --git a/torch/lib/THC/generic/THCTensorMasked.h b/aten/src/THC/generic/THCTensorMasked.h similarity index 100% rename from torch/lib/THC/generic/THCTensorMasked.h rename to aten/src/THC/generic/THCTensorMasked.h diff --git a/torch/lib/THC/generic/THCTensorMath.cu b/aten/src/THC/generic/THCTensorMath.cu similarity index 100% rename from torch/lib/THC/generic/THCTensorMath.cu rename to aten/src/THC/generic/THCTensorMath.cu diff --git a/torch/lib/THC/generic/THCTensorMath.h b/aten/src/THC/generic/THCTensorMath.h similarity index 100% rename from torch/lib/THC/generic/THCTensorMath.h rename to aten/src/THC/generic/THCTensorMath.h diff --git a/torch/lib/THC/generic/THCTensorMathBlas.cu b/aten/src/THC/generic/THCTensorMathBlas.cu similarity index 100% rename from torch/lib/THC/generic/THCTensorMathBlas.cu rename to aten/src/THC/generic/THCTensorMathBlas.cu diff --git a/torch/lib/THC/generic/THCTensorMathBlas.h b/aten/src/THC/generic/THCTensorMathBlas.h similarity index 100% rename from torch/lib/THC/generic/THCTensorMathBlas.h rename to aten/src/THC/generic/THCTensorMathBlas.h diff --git a/torch/lib/THC/generic/THCTensorMathCompare.cu b/aten/src/THC/generic/THCTensorMathCompare.cu similarity index 100% rename from torch/lib/THC/generic/THCTensorMathCompare.cu rename to aten/src/THC/generic/THCTensorMathCompare.cu diff --git a/torch/lib/THC/generic/THCTensorMathCompare.h b/aten/src/THC/generic/THCTensorMathCompare.h similarity index 100% rename from torch/lib/THC/generic/THCTensorMathCompare.h rename to aten/src/THC/generic/THCTensorMathCompare.h diff --git a/torch/lib/THC/generic/THCTensorMathCompareT.cu b/aten/src/THC/generic/THCTensorMathCompareT.cu similarity index 100% rename from torch/lib/THC/generic/THCTensorMathCompareT.cu rename to aten/src/THC/generic/THCTensorMathCompareT.cu diff --git a/torch/lib/THC/generic/THCTensorMathCompareT.h b/aten/src/THC/generic/THCTensorMathCompareT.h similarity index 100% rename from torch/lib/THC/generic/THCTensorMathCompareT.h rename to aten/src/THC/generic/THCTensorMathCompareT.h diff --git a/torch/lib/THC/generic/THCTensorMathMagma.cu b/aten/src/THC/generic/THCTensorMathMagma.cu similarity index 100% rename from torch/lib/THC/generic/THCTensorMathMagma.cu rename to aten/src/THC/generic/THCTensorMathMagma.cu diff --git a/torch/lib/THC/generic/THCTensorMathMagma.h b/aten/src/THC/generic/THCTensorMathMagma.h similarity index 100% rename from torch/lib/THC/generic/THCTensorMathMagma.h rename to aten/src/THC/generic/THCTensorMathMagma.h diff --git a/torch/lib/THC/generic/THCTensorMathPairwise.cu b/aten/src/THC/generic/THCTensorMathPairwise.cu similarity index 100% rename from torch/lib/THC/generic/THCTensorMathPairwise.cu rename to aten/src/THC/generic/THCTensorMathPairwise.cu diff --git a/torch/lib/THC/generic/THCTensorMathPairwise.h b/aten/src/THC/generic/THCTensorMathPairwise.h similarity index 100% rename from torch/lib/THC/generic/THCTensorMathPairwise.h rename to aten/src/THC/generic/THCTensorMathPairwise.h diff --git a/torch/lib/THC/generic/THCTensorMathPointwise.cu b/aten/src/THC/generic/THCTensorMathPointwise.cu similarity index 100% rename from torch/lib/THC/generic/THCTensorMathPointwise.cu rename to aten/src/THC/generic/THCTensorMathPointwise.cu diff --git a/torch/lib/THC/generic/THCTensorMathPointwise.h b/aten/src/THC/generic/THCTensorMathPointwise.h similarity index 100% rename from torch/lib/THC/generic/THCTensorMathPointwise.h rename to aten/src/THC/generic/THCTensorMathPointwise.h diff --git a/torch/lib/THC/generic/THCTensorMathReduce.cu b/aten/src/THC/generic/THCTensorMathReduce.cu similarity index 100% rename from torch/lib/THC/generic/THCTensorMathReduce.cu rename to aten/src/THC/generic/THCTensorMathReduce.cu diff --git a/torch/lib/THC/generic/THCTensorMathReduce.h b/aten/src/THC/generic/THCTensorMathReduce.h similarity index 100% rename from torch/lib/THC/generic/THCTensorMathReduce.h rename to aten/src/THC/generic/THCTensorMathReduce.h diff --git a/torch/lib/THC/generic/THCTensorMathScan.cu b/aten/src/THC/generic/THCTensorMathScan.cu similarity index 100% rename from torch/lib/THC/generic/THCTensorMathScan.cu rename to aten/src/THC/generic/THCTensorMathScan.cu diff --git a/torch/lib/THC/generic/THCTensorMathScan.h b/aten/src/THC/generic/THCTensorMathScan.h similarity index 100% rename from torch/lib/THC/generic/THCTensorMathScan.h rename to aten/src/THC/generic/THCTensorMathScan.h diff --git a/torch/lib/THC/generic/THCTensorMode.cu b/aten/src/THC/generic/THCTensorMode.cu similarity index 100% rename from torch/lib/THC/generic/THCTensorMode.cu rename to aten/src/THC/generic/THCTensorMode.cu diff --git a/torch/lib/THC/generic/THCTensorMode.h b/aten/src/THC/generic/THCTensorMode.h similarity index 100% rename from torch/lib/THC/generic/THCTensorMode.h rename to aten/src/THC/generic/THCTensorMode.h diff --git a/torch/lib/THC/generic/THCTensorRandom.cu b/aten/src/THC/generic/THCTensorRandom.cu similarity index 100% rename from torch/lib/THC/generic/THCTensorRandom.cu rename to aten/src/THC/generic/THCTensorRandom.cu diff --git a/torch/lib/THC/generic/THCTensorRandom.h b/aten/src/THC/generic/THCTensorRandom.h similarity index 100% rename from torch/lib/THC/generic/THCTensorRandom.h rename to aten/src/THC/generic/THCTensorRandom.h diff --git a/torch/lib/THC/generic/THCTensorScatterGather.cu b/aten/src/THC/generic/THCTensorScatterGather.cu similarity index 100% rename from torch/lib/THC/generic/THCTensorScatterGather.cu rename to aten/src/THC/generic/THCTensorScatterGather.cu diff --git a/torch/lib/THC/generic/THCTensorScatterGather.h b/aten/src/THC/generic/THCTensorScatterGather.h similarity index 100% rename from torch/lib/THC/generic/THCTensorScatterGather.h rename to aten/src/THC/generic/THCTensorScatterGather.h diff --git a/torch/lib/THC/generic/THCTensorSort.cu b/aten/src/THC/generic/THCTensorSort.cu similarity index 100% rename from torch/lib/THC/generic/THCTensorSort.cu rename to aten/src/THC/generic/THCTensorSort.cu diff --git a/torch/lib/THC/generic/THCTensorSort.h b/aten/src/THC/generic/THCTensorSort.h similarity index 100% rename from torch/lib/THC/generic/THCTensorSort.h rename to aten/src/THC/generic/THCTensorSort.h diff --git a/torch/lib/THC/generic/THCTensorTopK.cu b/aten/src/THC/generic/THCTensorTopK.cu similarity index 100% rename from torch/lib/THC/generic/THCTensorTopK.cu rename to aten/src/THC/generic/THCTensorTopK.cu diff --git a/torch/lib/THC/generic/THCTensorTopK.h b/aten/src/THC/generic/THCTensorTopK.h similarity index 100% rename from torch/lib/THC/generic/THCTensorTopK.h rename to aten/src/THC/generic/THCTensorTopK.h diff --git a/torch/lib/THCS/CMakeLists.txt b/aten/src/THCS/CMakeLists.txt similarity index 100% rename from torch/lib/THCS/CMakeLists.txt rename to aten/src/THCS/CMakeLists.txt diff --git a/torch/lib/THCS/THCS.h b/aten/src/THCS/THCS.h similarity index 100% rename from torch/lib/THCS/THCS.h rename to aten/src/THCS/THCS.h diff --git a/torch/lib/THCS/THCSGenerateAllTypes.h b/aten/src/THCS/THCSGenerateAllTypes.h similarity index 100% rename from torch/lib/THCS/THCSGenerateAllTypes.h rename to aten/src/THCS/THCSGenerateAllTypes.h diff --git a/torch/lib/THCS/THCSGenerateByteType.h b/aten/src/THCS/THCSGenerateByteType.h similarity index 100% rename from torch/lib/THCS/THCSGenerateByteType.h rename to aten/src/THCS/THCSGenerateByteType.h diff --git a/torch/lib/THCS/THCSGenerateCharType.h b/aten/src/THCS/THCSGenerateCharType.h similarity index 100% rename from torch/lib/THCS/THCSGenerateCharType.h rename to aten/src/THCS/THCSGenerateCharType.h diff --git a/torch/lib/THCS/THCSGenerateDoubleType.h b/aten/src/THCS/THCSGenerateDoubleType.h similarity index 100% rename from torch/lib/THCS/THCSGenerateDoubleType.h rename to aten/src/THCS/THCSGenerateDoubleType.h diff --git a/torch/lib/THCS/THCSGenerateFloatType.h b/aten/src/THCS/THCSGenerateFloatType.h similarity index 100% rename from torch/lib/THCS/THCSGenerateFloatType.h rename to aten/src/THCS/THCSGenerateFloatType.h diff --git a/torch/lib/THCS/THCSGenerateFloatTypes.h b/aten/src/THCS/THCSGenerateFloatTypes.h similarity index 100% rename from torch/lib/THCS/THCSGenerateFloatTypes.h rename to aten/src/THCS/THCSGenerateFloatTypes.h diff --git a/torch/lib/THCS/THCSGenerateHalfType.h b/aten/src/THCS/THCSGenerateHalfType.h similarity index 100% rename from torch/lib/THCS/THCSGenerateHalfType.h rename to aten/src/THCS/THCSGenerateHalfType.h diff --git a/torch/lib/THCS/THCSGenerateIntType.h b/aten/src/THCS/THCSGenerateIntType.h similarity index 100% rename from torch/lib/THCS/THCSGenerateIntType.h rename to aten/src/THCS/THCSGenerateIntType.h diff --git a/torch/lib/THCS/THCSGenerateLongType.h b/aten/src/THCS/THCSGenerateLongType.h similarity index 100% rename from torch/lib/THCS/THCSGenerateLongType.h rename to aten/src/THCS/THCSGenerateLongType.h diff --git a/torch/lib/THCS/THCSGenerateShortType.h b/aten/src/THCS/THCSGenerateShortType.h similarity index 100% rename from torch/lib/THCS/THCSGenerateShortType.h rename to aten/src/THCS/THCSGenerateShortType.h diff --git a/torch/lib/THCS/THCSTensor.c b/aten/src/THCS/THCSTensor.c similarity index 100% rename from torch/lib/THCS/THCSTensor.c rename to aten/src/THCS/THCSTensor.c diff --git a/torch/lib/THCS/THCSTensor.cu b/aten/src/THCS/THCSTensor.cu similarity index 100% rename from torch/lib/THCS/THCSTensor.cu rename to aten/src/THCS/THCSTensor.cu diff --git a/torch/lib/THCS/THCSTensor.h b/aten/src/THCS/THCSTensor.h similarity index 100% rename from torch/lib/THCS/THCSTensor.h rename to aten/src/THCS/THCSTensor.h diff --git a/torch/lib/THCS/THCSparse.cu b/aten/src/THCS/THCSparse.cu similarity index 100% rename from torch/lib/THCS/THCSparse.cu rename to aten/src/THCS/THCSparse.cu diff --git a/torch/lib/THCS/THCSparse.h b/aten/src/THCS/THCSparse.h similarity index 100% rename from torch/lib/THCS/THCSparse.h rename to aten/src/THCS/THCSparse.h diff --git a/torch/lib/THCS/cmake/FindMAGMA.cmake b/aten/src/THCS/cmake/FindMAGMA.cmake similarity index 100% rename from torch/lib/THCS/cmake/FindMAGMA.cmake rename to aten/src/THCS/cmake/FindMAGMA.cmake diff --git a/torch/lib/THCS/cmake/select_compute_arch.cmake b/aten/src/THCS/cmake/select_compute_arch.cmake similarity index 100% rename from torch/lib/THCS/cmake/select_compute_arch.cmake rename to aten/src/THCS/cmake/select_compute_arch.cmake diff --git a/torch/lib/THCS/generic/THCSTensor.c b/aten/src/THCS/generic/THCSTensor.c similarity index 100% rename from torch/lib/THCS/generic/THCSTensor.c rename to aten/src/THCS/generic/THCSTensor.c diff --git a/torch/lib/THCS/generic/THCSTensor.cu b/aten/src/THCS/generic/THCSTensor.cu similarity index 100% rename from torch/lib/THCS/generic/THCSTensor.cu rename to aten/src/THCS/generic/THCSTensor.cu diff --git a/torch/lib/THCS/generic/THCSTensor.h b/aten/src/THCS/generic/THCSTensor.h similarity index 100% rename from torch/lib/THCS/generic/THCSTensor.h rename to aten/src/THCS/generic/THCSTensor.h diff --git a/torch/lib/THCS/generic/THCSTensorMath.cu b/aten/src/THCS/generic/THCSTensorMath.cu similarity index 100% rename from torch/lib/THCS/generic/THCSTensorMath.cu rename to aten/src/THCS/generic/THCSTensorMath.cu diff --git a/torch/lib/THCS/generic/THCSTensorMath.h b/aten/src/THCS/generic/THCSTensorMath.h similarity index 100% rename from torch/lib/THCS/generic/THCSTensorMath.h rename to aten/src/THCS/generic/THCSTensorMath.h diff --git a/torch/lib/THCUNN/Abs.cu b/aten/src/THCUNN/Abs.cu similarity index 100% rename from torch/lib/THCUNN/Abs.cu rename to aten/src/THCUNN/Abs.cu diff --git a/torch/lib/THCUNN/AbsCriterion.cu b/aten/src/THCUNN/AbsCriterion.cu similarity index 100% rename from torch/lib/THCUNN/AbsCriterion.cu rename to aten/src/THCUNN/AbsCriterion.cu diff --git a/torch/lib/THCUNN/BCECriterion.cu b/aten/src/THCUNN/BCECriterion.cu similarity index 100% rename from torch/lib/THCUNN/BCECriterion.cu rename to aten/src/THCUNN/BCECriterion.cu diff --git a/torch/lib/THCUNN/BatchNormalization.cu b/aten/src/THCUNN/BatchNormalization.cu similarity index 100% rename from torch/lib/THCUNN/BatchNormalization.cu rename to aten/src/THCUNN/BatchNormalization.cu diff --git a/torch/lib/THCUNN/CMakeLists.txt b/aten/src/THCUNN/CMakeLists.txt similarity index 100% rename from torch/lib/THCUNN/CMakeLists.txt rename to aten/src/THCUNN/CMakeLists.txt diff --git a/torch/lib/THCUNN/ClassNLLCriterion.cu b/aten/src/THCUNN/ClassNLLCriterion.cu similarity index 100% rename from torch/lib/THCUNN/ClassNLLCriterion.cu rename to aten/src/THCUNN/ClassNLLCriterion.cu diff --git a/torch/lib/THCUNN/DistKLDivCriterion.cu b/aten/src/THCUNN/DistKLDivCriterion.cu similarity index 100% rename from torch/lib/THCUNN/DistKLDivCriterion.cu rename to aten/src/THCUNN/DistKLDivCriterion.cu diff --git a/torch/lib/THCUNN/ELU.cu b/aten/src/THCUNN/ELU.cu similarity index 100% rename from torch/lib/THCUNN/ELU.cu rename to aten/src/THCUNN/ELU.cu diff --git a/torch/lib/THCUNN/FeatureLPPooling.cu b/aten/src/THCUNN/FeatureLPPooling.cu similarity index 100% rename from torch/lib/THCUNN/FeatureLPPooling.cu rename to aten/src/THCUNN/FeatureLPPooling.cu diff --git a/torch/lib/THCUNN/FusedRNNKernel.cu b/aten/src/THCUNN/FusedRNNKernel.cu similarity index 100% rename from torch/lib/THCUNN/FusedRNNKernel.cu rename to aten/src/THCUNN/FusedRNNKernel.cu diff --git a/torch/lib/THCUNN/GatedLinearUnit.cu b/aten/src/THCUNN/GatedLinearUnit.cu similarity index 100% rename from torch/lib/THCUNN/GatedLinearUnit.cu rename to aten/src/THCUNN/GatedLinearUnit.cu diff --git a/torch/lib/THCUNN/HardTanh.cu b/aten/src/THCUNN/HardTanh.cu similarity index 100% rename from torch/lib/THCUNN/HardTanh.cu rename to aten/src/THCUNN/HardTanh.cu diff --git a/torch/lib/THCUNN/IndexLinear.cu b/aten/src/THCUNN/IndexLinear.cu similarity index 100% rename from torch/lib/THCUNN/IndexLinear.cu rename to aten/src/THCUNN/IndexLinear.cu diff --git a/torch/lib/THCUNN/L1Cost.cu b/aten/src/THCUNN/L1Cost.cu similarity index 100% rename from torch/lib/THCUNN/L1Cost.cu rename to aten/src/THCUNN/L1Cost.cu diff --git a/torch/lib/THCUNN/LeakyReLU.cu b/aten/src/THCUNN/LeakyReLU.cu similarity index 100% rename from torch/lib/THCUNN/LeakyReLU.cu rename to aten/src/THCUNN/LeakyReLU.cu diff --git a/torch/lib/THCUNN/LogSigmoid.cu b/aten/src/THCUNN/LogSigmoid.cu similarity index 100% rename from torch/lib/THCUNN/LogSigmoid.cu rename to aten/src/THCUNN/LogSigmoid.cu diff --git a/torch/lib/THCUNN/LogSoftMax.cu b/aten/src/THCUNN/LogSoftMax.cu similarity index 100% rename from torch/lib/THCUNN/LogSoftMax.cu rename to aten/src/THCUNN/LogSoftMax.cu diff --git a/torch/lib/THCUNN/LookupTable.cu b/aten/src/THCUNN/LookupTable.cu similarity index 100% rename from torch/lib/THCUNN/LookupTable.cu rename to aten/src/THCUNN/LookupTable.cu diff --git a/torch/lib/THCUNN/LookupTableBag.cu b/aten/src/THCUNN/LookupTableBag.cu similarity index 100% rename from torch/lib/THCUNN/LookupTableBag.cu rename to aten/src/THCUNN/LookupTableBag.cu diff --git a/torch/lib/THCUNN/MSECriterion.cu b/aten/src/THCUNN/MSECriterion.cu similarity index 100% rename from torch/lib/THCUNN/MSECriterion.cu rename to aten/src/THCUNN/MSECriterion.cu diff --git a/torch/lib/THCUNN/MarginCriterion.cu b/aten/src/THCUNN/MarginCriterion.cu similarity index 100% rename from torch/lib/THCUNN/MarginCriterion.cu rename to aten/src/THCUNN/MarginCriterion.cu diff --git a/torch/lib/THCUNN/MultiLabelMarginCriterion.cu b/aten/src/THCUNN/MultiLabelMarginCriterion.cu similarity index 100% rename from torch/lib/THCUNN/MultiLabelMarginCriterion.cu rename to aten/src/THCUNN/MultiLabelMarginCriterion.cu diff --git a/torch/lib/THCUNN/MultiMarginCriterion.cu b/aten/src/THCUNN/MultiMarginCriterion.cu similarity index 100% rename from torch/lib/THCUNN/MultiMarginCriterion.cu rename to aten/src/THCUNN/MultiMarginCriterion.cu diff --git a/torch/lib/THCUNN/PReLU.cu b/aten/src/THCUNN/PReLU.cu similarity index 100% rename from torch/lib/THCUNN/PReLU.cu rename to aten/src/THCUNN/PReLU.cu diff --git a/torch/lib/THCUNN/RReLU.cu b/aten/src/THCUNN/RReLU.cu similarity index 100% rename from torch/lib/THCUNN/RReLU.cu rename to aten/src/THCUNN/RReLU.cu diff --git a/torch/lib/THCUNN/SharedMem.cuh b/aten/src/THCUNN/SharedMem.cuh similarity index 100% rename from torch/lib/THCUNN/SharedMem.cuh rename to aten/src/THCUNN/SharedMem.cuh diff --git a/torch/lib/THCUNN/Sigmoid.cu b/aten/src/THCUNN/Sigmoid.cu similarity index 100% rename from torch/lib/THCUNN/Sigmoid.cu rename to aten/src/THCUNN/Sigmoid.cu diff --git a/torch/lib/THCUNN/SmoothL1Criterion.cu b/aten/src/THCUNN/SmoothL1Criterion.cu similarity index 100% rename from torch/lib/THCUNN/SmoothL1Criterion.cu rename to aten/src/THCUNN/SmoothL1Criterion.cu diff --git a/torch/lib/THCUNN/SoftMarginCriterion.cu b/aten/src/THCUNN/SoftMarginCriterion.cu similarity index 100% rename from torch/lib/THCUNN/SoftMarginCriterion.cu rename to aten/src/THCUNN/SoftMarginCriterion.cu diff --git a/torch/lib/THCUNN/SoftMax.cu b/aten/src/THCUNN/SoftMax.cu similarity index 100% rename from torch/lib/THCUNN/SoftMax.cu rename to aten/src/THCUNN/SoftMax.cu diff --git a/torch/lib/THCUNN/SoftMaxCommon.cuh b/aten/src/THCUNN/SoftMaxCommon.cuh similarity index 100% rename from torch/lib/THCUNN/SoftMaxCommon.cuh rename to aten/src/THCUNN/SoftMaxCommon.cuh diff --git a/torch/lib/THCUNN/SoftPlus.cu b/aten/src/THCUNN/SoftPlus.cu similarity index 100% rename from torch/lib/THCUNN/SoftPlus.cu rename to aten/src/THCUNN/SoftPlus.cu diff --git a/torch/lib/THCUNN/SoftShrink.cu b/aten/src/THCUNN/SoftShrink.cu similarity index 100% rename from torch/lib/THCUNN/SoftShrink.cu rename to aten/src/THCUNN/SoftShrink.cu diff --git a/torch/lib/THCUNN/SparseLinear.cu b/aten/src/THCUNN/SparseLinear.cu similarity index 100% rename from torch/lib/THCUNN/SparseLinear.cu rename to aten/src/THCUNN/SparseLinear.cu diff --git a/torch/lib/THCUNN/SpatialAdaptiveAveragePooling.cu b/aten/src/THCUNN/SpatialAdaptiveAveragePooling.cu similarity index 100% rename from torch/lib/THCUNN/SpatialAdaptiveAveragePooling.cu rename to aten/src/THCUNN/SpatialAdaptiveAveragePooling.cu diff --git a/torch/lib/THCUNN/SpatialAdaptiveMaxPooling.cu b/aten/src/THCUNN/SpatialAdaptiveMaxPooling.cu similarity index 100% rename from torch/lib/THCUNN/SpatialAdaptiveMaxPooling.cu rename to aten/src/THCUNN/SpatialAdaptiveMaxPooling.cu diff --git a/torch/lib/THCUNN/SpatialAveragePooling.cu b/aten/src/THCUNN/SpatialAveragePooling.cu similarity index 100% rename from torch/lib/THCUNN/SpatialAveragePooling.cu rename to aten/src/THCUNN/SpatialAveragePooling.cu diff --git a/torch/lib/THCUNN/SpatialClassNLLCriterion.cu b/aten/src/THCUNN/SpatialClassNLLCriterion.cu similarity index 100% rename from torch/lib/THCUNN/SpatialClassNLLCriterion.cu rename to aten/src/THCUNN/SpatialClassNLLCriterion.cu diff --git a/torch/lib/THCUNN/SpatialConvolutionLocal.cu b/aten/src/THCUNN/SpatialConvolutionLocal.cu similarity index 100% rename from torch/lib/THCUNN/SpatialConvolutionLocal.cu rename to aten/src/THCUNN/SpatialConvolutionLocal.cu diff --git a/torch/lib/THCUNN/SpatialConvolutionMM.cu b/aten/src/THCUNN/SpatialConvolutionMM.cu similarity index 100% rename from torch/lib/THCUNN/SpatialConvolutionMM.cu rename to aten/src/THCUNN/SpatialConvolutionMM.cu diff --git a/torch/lib/THCUNN/SpatialCrossMapLRN.cu b/aten/src/THCUNN/SpatialCrossMapLRN.cu similarity index 100% rename from torch/lib/THCUNN/SpatialCrossMapLRN.cu rename to aten/src/THCUNN/SpatialCrossMapLRN.cu diff --git a/torch/lib/THCUNN/SpatialDepthwiseConvolution.cu b/aten/src/THCUNN/SpatialDepthwiseConvolution.cu similarity index 100% rename from torch/lib/THCUNN/SpatialDepthwiseConvolution.cu rename to aten/src/THCUNN/SpatialDepthwiseConvolution.cu diff --git a/torch/lib/THCUNN/SpatialDilatedConvolution.cu b/aten/src/THCUNN/SpatialDilatedConvolution.cu similarity index 100% rename from torch/lib/THCUNN/SpatialDilatedConvolution.cu rename to aten/src/THCUNN/SpatialDilatedConvolution.cu diff --git a/torch/lib/THCUNN/SpatialDilatedMaxPooling.cu b/aten/src/THCUNN/SpatialDilatedMaxPooling.cu similarity index 100% rename from torch/lib/THCUNN/SpatialDilatedMaxPooling.cu rename to aten/src/THCUNN/SpatialDilatedMaxPooling.cu diff --git a/torch/lib/THCUNN/SpatialFractionalMaxPooling.cu b/aten/src/THCUNN/SpatialFractionalMaxPooling.cu similarity index 100% rename from torch/lib/THCUNN/SpatialFractionalMaxPooling.cu rename to aten/src/THCUNN/SpatialFractionalMaxPooling.cu diff --git a/torch/lib/THCUNN/SpatialFullConvolution.cu b/aten/src/THCUNN/SpatialFullConvolution.cu similarity index 100% rename from torch/lib/THCUNN/SpatialFullConvolution.cu rename to aten/src/THCUNN/SpatialFullConvolution.cu diff --git a/torch/lib/THCUNN/SpatialFullDilatedConvolution.cu b/aten/src/THCUNN/SpatialFullDilatedConvolution.cu similarity index 100% rename from torch/lib/THCUNN/SpatialFullDilatedConvolution.cu rename to aten/src/THCUNN/SpatialFullDilatedConvolution.cu diff --git a/torch/lib/THCUNN/SpatialGridSamplerBilinear.cu b/aten/src/THCUNN/SpatialGridSamplerBilinear.cu similarity index 100% rename from torch/lib/THCUNN/SpatialGridSamplerBilinear.cu rename to aten/src/THCUNN/SpatialGridSamplerBilinear.cu diff --git a/torch/lib/THCUNN/SpatialMaxPooling.cu b/aten/src/THCUNN/SpatialMaxPooling.cu similarity index 100% rename from torch/lib/THCUNN/SpatialMaxPooling.cu rename to aten/src/THCUNN/SpatialMaxPooling.cu diff --git a/torch/lib/THCUNN/SpatialMaxUnpooling.cu b/aten/src/THCUNN/SpatialMaxUnpooling.cu similarity index 100% rename from torch/lib/THCUNN/SpatialMaxUnpooling.cu rename to aten/src/THCUNN/SpatialMaxUnpooling.cu diff --git a/torch/lib/THCUNN/SpatialReflectionPadding.cu b/aten/src/THCUNN/SpatialReflectionPadding.cu similarity index 100% rename from torch/lib/THCUNN/SpatialReflectionPadding.cu rename to aten/src/THCUNN/SpatialReflectionPadding.cu diff --git a/torch/lib/THCUNN/SpatialReplicationPadding.cu b/aten/src/THCUNN/SpatialReplicationPadding.cu similarity index 100% rename from torch/lib/THCUNN/SpatialReplicationPadding.cu rename to aten/src/THCUNN/SpatialReplicationPadding.cu diff --git a/torch/lib/THCUNN/SpatialSubSampling.cu b/aten/src/THCUNN/SpatialSubSampling.cu similarity index 100% rename from torch/lib/THCUNN/SpatialSubSampling.cu rename to aten/src/THCUNN/SpatialSubSampling.cu diff --git a/torch/lib/THCUNN/SpatialUpSamplingBilinear.cu b/aten/src/THCUNN/SpatialUpSamplingBilinear.cu similarity index 100% rename from torch/lib/THCUNN/SpatialUpSamplingBilinear.cu rename to aten/src/THCUNN/SpatialUpSamplingBilinear.cu diff --git a/torch/lib/THCUNN/SpatialUpSamplingNearest.cu b/aten/src/THCUNN/SpatialUpSamplingNearest.cu similarity index 100% rename from torch/lib/THCUNN/SpatialUpSamplingNearest.cu rename to aten/src/THCUNN/SpatialUpSamplingNearest.cu diff --git a/torch/lib/THCUNN/Sqrt.cu b/aten/src/THCUNN/Sqrt.cu similarity index 100% rename from torch/lib/THCUNN/Sqrt.cu rename to aten/src/THCUNN/Sqrt.cu diff --git a/torch/lib/THCUNN/Square.cu b/aten/src/THCUNN/Square.cu similarity index 100% rename from torch/lib/THCUNN/Square.cu rename to aten/src/THCUNN/Square.cu diff --git a/torch/lib/THCUNN/THCHalfAutoNumerics.cuh b/aten/src/THCUNN/THCHalfAutoNumerics.cuh similarity index 100% rename from torch/lib/THCUNN/THCHalfAutoNumerics.cuh rename to aten/src/THCUNN/THCHalfAutoNumerics.cuh diff --git a/torch/lib/THCUNN/THCUNN.h b/aten/src/THCUNN/THCUNN.h similarity index 100% rename from torch/lib/THCUNN/THCUNN.h rename to aten/src/THCUNN/THCUNN.h diff --git a/torch/lib/THCUNN/Tanh.cu b/aten/src/THCUNN/Tanh.cu similarity index 100% rename from torch/lib/THCUNN/Tanh.cu rename to aten/src/THCUNN/Tanh.cu diff --git a/torch/lib/THCUNN/TemporalConvolution.cu b/aten/src/THCUNN/TemporalConvolution.cu similarity index 100% rename from torch/lib/THCUNN/TemporalConvolution.cu rename to aten/src/THCUNN/TemporalConvolution.cu diff --git a/torch/lib/THCUNN/TemporalMaxPooling.cu b/aten/src/THCUNN/TemporalMaxPooling.cu similarity index 100% rename from torch/lib/THCUNN/TemporalMaxPooling.cu rename to aten/src/THCUNN/TemporalMaxPooling.cu diff --git a/torch/lib/THCUNN/TemporalReflectionPadding.cu b/aten/src/THCUNN/TemporalReflectionPadding.cu similarity index 100% rename from torch/lib/THCUNN/TemporalReflectionPadding.cu rename to aten/src/THCUNN/TemporalReflectionPadding.cu diff --git a/torch/lib/THCUNN/TemporalReplicationPadding.cu b/aten/src/THCUNN/TemporalReplicationPadding.cu similarity index 100% rename from torch/lib/THCUNN/TemporalReplicationPadding.cu rename to aten/src/THCUNN/TemporalReplicationPadding.cu diff --git a/torch/lib/THCUNN/TemporalRowConvolution.cu b/aten/src/THCUNN/TemporalRowConvolution.cu similarity index 100% rename from torch/lib/THCUNN/TemporalRowConvolution.cu rename to aten/src/THCUNN/TemporalRowConvolution.cu diff --git a/torch/lib/THCUNN/TemporalUpSamplingLinear.cu b/aten/src/THCUNN/TemporalUpSamplingLinear.cu similarity index 100% rename from torch/lib/THCUNN/TemporalUpSamplingLinear.cu rename to aten/src/THCUNN/TemporalUpSamplingLinear.cu diff --git a/torch/lib/THCUNN/TemporalUpSamplingNearest.cu b/aten/src/THCUNN/TemporalUpSamplingNearest.cu similarity index 100% rename from torch/lib/THCUNN/TemporalUpSamplingNearest.cu rename to aten/src/THCUNN/TemporalUpSamplingNearest.cu diff --git a/torch/lib/THCUNN/Threshold.cu b/aten/src/THCUNN/Threshold.cu similarity index 100% rename from torch/lib/THCUNN/Threshold.cu rename to aten/src/THCUNN/Threshold.cu diff --git a/torch/lib/THCUNN/VolumetricAdaptiveAveragePooling.cu b/aten/src/THCUNN/VolumetricAdaptiveAveragePooling.cu similarity index 100% rename from torch/lib/THCUNN/VolumetricAdaptiveAveragePooling.cu rename to aten/src/THCUNN/VolumetricAdaptiveAveragePooling.cu diff --git a/torch/lib/THCUNN/VolumetricAdaptiveMaxPooling.cu b/aten/src/THCUNN/VolumetricAdaptiveMaxPooling.cu similarity index 100% rename from torch/lib/THCUNN/VolumetricAdaptiveMaxPooling.cu rename to aten/src/THCUNN/VolumetricAdaptiveMaxPooling.cu diff --git a/torch/lib/THCUNN/VolumetricAveragePooling.cu b/aten/src/THCUNN/VolumetricAveragePooling.cu similarity index 100% rename from torch/lib/THCUNN/VolumetricAveragePooling.cu rename to aten/src/THCUNN/VolumetricAveragePooling.cu diff --git a/torch/lib/THCUNN/VolumetricConvolution.cu b/aten/src/THCUNN/VolumetricConvolution.cu similarity index 100% rename from torch/lib/THCUNN/VolumetricConvolution.cu rename to aten/src/THCUNN/VolumetricConvolution.cu diff --git a/torch/lib/THCUNN/VolumetricDilatedConvolution.cu b/aten/src/THCUNN/VolumetricDilatedConvolution.cu similarity index 100% rename from torch/lib/THCUNN/VolumetricDilatedConvolution.cu rename to aten/src/THCUNN/VolumetricDilatedConvolution.cu diff --git a/torch/lib/THCUNN/VolumetricDilatedMaxPooling.cu b/aten/src/THCUNN/VolumetricDilatedMaxPooling.cu similarity index 100% rename from torch/lib/THCUNN/VolumetricDilatedMaxPooling.cu rename to aten/src/THCUNN/VolumetricDilatedMaxPooling.cu diff --git a/torch/lib/THCUNN/VolumetricFractionalMaxPooling.cu b/aten/src/THCUNN/VolumetricFractionalMaxPooling.cu similarity index 100% rename from torch/lib/THCUNN/VolumetricFractionalMaxPooling.cu rename to aten/src/THCUNN/VolumetricFractionalMaxPooling.cu diff --git a/torch/lib/THCUNN/VolumetricFullConvolution.cu b/aten/src/THCUNN/VolumetricFullConvolution.cu similarity index 100% rename from torch/lib/THCUNN/VolumetricFullConvolution.cu rename to aten/src/THCUNN/VolumetricFullConvolution.cu diff --git a/torch/lib/THCUNN/VolumetricFullDilatedConvolution.cu b/aten/src/THCUNN/VolumetricFullDilatedConvolution.cu similarity index 100% rename from torch/lib/THCUNN/VolumetricFullDilatedConvolution.cu rename to aten/src/THCUNN/VolumetricFullDilatedConvolution.cu diff --git a/torch/lib/THCUNN/VolumetricMaxPooling.cu b/aten/src/THCUNN/VolumetricMaxPooling.cu similarity index 100% rename from torch/lib/THCUNN/VolumetricMaxPooling.cu rename to aten/src/THCUNN/VolumetricMaxPooling.cu diff --git a/torch/lib/THCUNN/VolumetricMaxUnpooling.cu b/aten/src/THCUNN/VolumetricMaxUnpooling.cu similarity index 100% rename from torch/lib/THCUNN/VolumetricMaxUnpooling.cu rename to aten/src/THCUNN/VolumetricMaxUnpooling.cu diff --git a/torch/lib/THCUNN/VolumetricReplicationPadding.cu b/aten/src/THCUNN/VolumetricReplicationPadding.cu similarity index 100% rename from torch/lib/THCUNN/VolumetricReplicationPadding.cu rename to aten/src/THCUNN/VolumetricReplicationPadding.cu diff --git a/torch/lib/THCUNN/VolumetricUpSamplingNearest.cu b/aten/src/THCUNN/VolumetricUpSamplingNearest.cu similarity index 100% rename from torch/lib/THCUNN/VolumetricUpSamplingNearest.cu rename to aten/src/THCUNN/VolumetricUpSamplingNearest.cu diff --git a/torch/lib/THCUNN/VolumetricUpSamplingTrilinear.cu b/aten/src/THCUNN/VolumetricUpSamplingTrilinear.cu similarity index 100% rename from torch/lib/THCUNN/VolumetricUpSamplingTrilinear.cu rename to aten/src/THCUNN/VolumetricUpSamplingTrilinear.cu diff --git a/torch/lib/THCUNN/cmake/select_compute_arch.cmake b/aten/src/THCUNN/cmake/select_compute_arch.cmake similarity index 100% rename from torch/lib/THCUNN/cmake/select_compute_arch.cmake rename to aten/src/THCUNN/cmake/select_compute_arch.cmake diff --git a/torch/lib/THCUNN/common.h b/aten/src/THCUNN/common.h similarity index 100% rename from torch/lib/THCUNN/common.h rename to aten/src/THCUNN/common.h diff --git a/torch/lib/THCUNN/generic/Abs.cu b/aten/src/THCUNN/generic/Abs.cu similarity index 100% rename from torch/lib/THCUNN/generic/Abs.cu rename to aten/src/THCUNN/generic/Abs.cu diff --git a/torch/lib/THCUNN/generic/AbsCriterion.cu b/aten/src/THCUNN/generic/AbsCriterion.cu similarity index 100% rename from torch/lib/THCUNN/generic/AbsCriterion.cu rename to aten/src/THCUNN/generic/AbsCriterion.cu diff --git a/torch/lib/THCUNN/generic/BCECriterion.cu b/aten/src/THCUNN/generic/BCECriterion.cu similarity index 100% rename from torch/lib/THCUNN/generic/BCECriterion.cu rename to aten/src/THCUNN/generic/BCECriterion.cu diff --git a/torch/lib/THCUNN/generic/BatchNormalization.cu b/aten/src/THCUNN/generic/BatchNormalization.cu similarity index 100% rename from torch/lib/THCUNN/generic/BatchNormalization.cu rename to aten/src/THCUNN/generic/BatchNormalization.cu diff --git a/torch/lib/THCUNN/generic/ClassNLLCriterion.cu b/aten/src/THCUNN/generic/ClassNLLCriterion.cu similarity index 100% rename from torch/lib/THCUNN/generic/ClassNLLCriterion.cu rename to aten/src/THCUNN/generic/ClassNLLCriterion.cu diff --git a/torch/lib/THCUNN/generic/DistKLDivCriterion.cu b/aten/src/THCUNN/generic/DistKLDivCriterion.cu similarity index 100% rename from torch/lib/THCUNN/generic/DistKLDivCriterion.cu rename to aten/src/THCUNN/generic/DistKLDivCriterion.cu diff --git a/torch/lib/THCUNN/generic/ELU.cu b/aten/src/THCUNN/generic/ELU.cu similarity index 100% rename from torch/lib/THCUNN/generic/ELU.cu rename to aten/src/THCUNN/generic/ELU.cu diff --git a/torch/lib/THCUNN/generic/FeatureLPPooling.cu b/aten/src/THCUNN/generic/FeatureLPPooling.cu similarity index 100% rename from torch/lib/THCUNN/generic/FeatureLPPooling.cu rename to aten/src/THCUNN/generic/FeatureLPPooling.cu diff --git a/torch/lib/THCUNN/generic/FusedRNNKernel.cu b/aten/src/THCUNN/generic/FusedRNNKernel.cu similarity index 100% rename from torch/lib/THCUNN/generic/FusedRNNKernel.cu rename to aten/src/THCUNN/generic/FusedRNNKernel.cu diff --git a/torch/lib/THCUNN/generic/GatedLinearUnit.cu b/aten/src/THCUNN/generic/GatedLinearUnit.cu similarity index 100% rename from torch/lib/THCUNN/generic/GatedLinearUnit.cu rename to aten/src/THCUNN/generic/GatedLinearUnit.cu diff --git a/torch/lib/THCUNN/generic/HardTanh.cu b/aten/src/THCUNN/generic/HardTanh.cu similarity index 100% rename from torch/lib/THCUNN/generic/HardTanh.cu rename to aten/src/THCUNN/generic/HardTanh.cu diff --git a/torch/lib/THCUNN/generic/IndexLinear.cu b/aten/src/THCUNN/generic/IndexLinear.cu similarity index 100% rename from torch/lib/THCUNN/generic/IndexLinear.cu rename to aten/src/THCUNN/generic/IndexLinear.cu diff --git a/torch/lib/THCUNN/generic/L1Cost.cu b/aten/src/THCUNN/generic/L1Cost.cu similarity index 100% rename from torch/lib/THCUNN/generic/L1Cost.cu rename to aten/src/THCUNN/generic/L1Cost.cu diff --git a/torch/lib/THCUNN/generic/LeakyReLU.cu b/aten/src/THCUNN/generic/LeakyReLU.cu similarity index 100% rename from torch/lib/THCUNN/generic/LeakyReLU.cu rename to aten/src/THCUNN/generic/LeakyReLU.cu diff --git a/torch/lib/THCUNN/generic/LogSigmoid.cu b/aten/src/THCUNN/generic/LogSigmoid.cu similarity index 100% rename from torch/lib/THCUNN/generic/LogSigmoid.cu rename to aten/src/THCUNN/generic/LogSigmoid.cu diff --git a/torch/lib/THCUNN/generic/LogSoftMax.cu b/aten/src/THCUNN/generic/LogSoftMax.cu similarity index 100% rename from torch/lib/THCUNN/generic/LogSoftMax.cu rename to aten/src/THCUNN/generic/LogSoftMax.cu diff --git a/torch/lib/THCUNN/generic/LookupTable.cu b/aten/src/THCUNN/generic/LookupTable.cu similarity index 100% rename from torch/lib/THCUNN/generic/LookupTable.cu rename to aten/src/THCUNN/generic/LookupTable.cu diff --git a/torch/lib/THCUNN/generic/LookupTableBag.cu b/aten/src/THCUNN/generic/LookupTableBag.cu similarity index 100% rename from torch/lib/THCUNN/generic/LookupTableBag.cu rename to aten/src/THCUNN/generic/LookupTableBag.cu diff --git a/torch/lib/THCUNN/generic/MSECriterion.cu b/aten/src/THCUNN/generic/MSECriterion.cu similarity index 100% rename from torch/lib/THCUNN/generic/MSECriterion.cu rename to aten/src/THCUNN/generic/MSECriterion.cu diff --git a/torch/lib/THCUNN/generic/MarginCriterion.cu b/aten/src/THCUNN/generic/MarginCriterion.cu similarity index 100% rename from torch/lib/THCUNN/generic/MarginCriterion.cu rename to aten/src/THCUNN/generic/MarginCriterion.cu diff --git a/torch/lib/THCUNN/generic/MultiLabelMarginCriterion.cu b/aten/src/THCUNN/generic/MultiLabelMarginCriterion.cu similarity index 100% rename from torch/lib/THCUNN/generic/MultiLabelMarginCriterion.cu rename to aten/src/THCUNN/generic/MultiLabelMarginCriterion.cu diff --git a/torch/lib/THCUNN/generic/MultiMarginCriterion.cu b/aten/src/THCUNN/generic/MultiMarginCriterion.cu similarity index 100% rename from torch/lib/THCUNN/generic/MultiMarginCriterion.cu rename to aten/src/THCUNN/generic/MultiMarginCriterion.cu diff --git a/torch/lib/THCUNN/generic/PReLU.cu b/aten/src/THCUNN/generic/PReLU.cu similarity index 100% rename from torch/lib/THCUNN/generic/PReLU.cu rename to aten/src/THCUNN/generic/PReLU.cu diff --git a/torch/lib/THCUNN/generic/RReLU.cu b/aten/src/THCUNN/generic/RReLU.cu similarity index 100% rename from torch/lib/THCUNN/generic/RReLU.cu rename to aten/src/THCUNN/generic/RReLU.cu diff --git a/torch/lib/THCUNN/generic/Sigmoid.cu b/aten/src/THCUNN/generic/Sigmoid.cu similarity index 100% rename from torch/lib/THCUNN/generic/Sigmoid.cu rename to aten/src/THCUNN/generic/Sigmoid.cu diff --git a/torch/lib/THCUNN/generic/SmoothL1Criterion.cu b/aten/src/THCUNN/generic/SmoothL1Criterion.cu similarity index 100% rename from torch/lib/THCUNN/generic/SmoothL1Criterion.cu rename to aten/src/THCUNN/generic/SmoothL1Criterion.cu diff --git a/torch/lib/THCUNN/generic/SoftMarginCriterion.cu b/aten/src/THCUNN/generic/SoftMarginCriterion.cu similarity index 100% rename from torch/lib/THCUNN/generic/SoftMarginCriterion.cu rename to aten/src/THCUNN/generic/SoftMarginCriterion.cu diff --git a/torch/lib/THCUNN/generic/SoftMax.cu b/aten/src/THCUNN/generic/SoftMax.cu similarity index 100% rename from torch/lib/THCUNN/generic/SoftMax.cu rename to aten/src/THCUNN/generic/SoftMax.cu diff --git a/torch/lib/THCUNN/generic/SoftPlus.cu b/aten/src/THCUNN/generic/SoftPlus.cu similarity index 100% rename from torch/lib/THCUNN/generic/SoftPlus.cu rename to aten/src/THCUNN/generic/SoftPlus.cu diff --git a/torch/lib/THCUNN/generic/SoftShrink.cu b/aten/src/THCUNN/generic/SoftShrink.cu similarity index 100% rename from torch/lib/THCUNN/generic/SoftShrink.cu rename to aten/src/THCUNN/generic/SoftShrink.cu diff --git a/torch/lib/THCUNN/generic/SparseLinear.cu b/aten/src/THCUNN/generic/SparseLinear.cu similarity index 100% rename from torch/lib/THCUNN/generic/SparseLinear.cu rename to aten/src/THCUNN/generic/SparseLinear.cu diff --git a/torch/lib/THCUNN/generic/SpatialAdaptiveAveragePooling.cu b/aten/src/THCUNN/generic/SpatialAdaptiveAveragePooling.cu similarity index 100% rename from torch/lib/THCUNN/generic/SpatialAdaptiveAveragePooling.cu rename to aten/src/THCUNN/generic/SpatialAdaptiveAveragePooling.cu diff --git a/torch/lib/THCUNN/generic/SpatialAdaptiveMaxPooling.cu b/aten/src/THCUNN/generic/SpatialAdaptiveMaxPooling.cu similarity index 100% rename from torch/lib/THCUNN/generic/SpatialAdaptiveMaxPooling.cu rename to aten/src/THCUNN/generic/SpatialAdaptiveMaxPooling.cu diff --git a/torch/lib/THCUNN/generic/SpatialAveragePooling.cu b/aten/src/THCUNN/generic/SpatialAveragePooling.cu similarity index 100% rename from torch/lib/THCUNN/generic/SpatialAveragePooling.cu rename to aten/src/THCUNN/generic/SpatialAveragePooling.cu diff --git a/torch/lib/THCUNN/generic/SpatialClassNLLCriterion.cu b/aten/src/THCUNN/generic/SpatialClassNLLCriterion.cu similarity index 100% rename from torch/lib/THCUNN/generic/SpatialClassNLLCriterion.cu rename to aten/src/THCUNN/generic/SpatialClassNLLCriterion.cu diff --git a/torch/lib/THCUNN/generic/SpatialConvolutionLocal.cu b/aten/src/THCUNN/generic/SpatialConvolutionLocal.cu similarity index 100% rename from torch/lib/THCUNN/generic/SpatialConvolutionLocal.cu rename to aten/src/THCUNN/generic/SpatialConvolutionLocal.cu diff --git a/torch/lib/THCUNN/generic/SpatialConvolutionMM.cu b/aten/src/THCUNN/generic/SpatialConvolutionMM.cu similarity index 100% rename from torch/lib/THCUNN/generic/SpatialConvolutionMM.cu rename to aten/src/THCUNN/generic/SpatialConvolutionMM.cu diff --git a/torch/lib/THCUNN/generic/SpatialCrossMapLRN.cu b/aten/src/THCUNN/generic/SpatialCrossMapLRN.cu similarity index 100% rename from torch/lib/THCUNN/generic/SpatialCrossMapLRN.cu rename to aten/src/THCUNN/generic/SpatialCrossMapLRN.cu diff --git a/torch/lib/THCUNN/generic/SpatialDepthwiseConvolution.cu b/aten/src/THCUNN/generic/SpatialDepthwiseConvolution.cu similarity index 100% rename from torch/lib/THCUNN/generic/SpatialDepthwiseConvolution.cu rename to aten/src/THCUNN/generic/SpatialDepthwiseConvolution.cu diff --git a/torch/lib/THCUNN/generic/SpatialDilatedConvolution.cu b/aten/src/THCUNN/generic/SpatialDilatedConvolution.cu similarity index 100% rename from torch/lib/THCUNN/generic/SpatialDilatedConvolution.cu rename to aten/src/THCUNN/generic/SpatialDilatedConvolution.cu diff --git a/torch/lib/THCUNN/generic/SpatialDilatedMaxPooling.cu b/aten/src/THCUNN/generic/SpatialDilatedMaxPooling.cu similarity index 100% rename from torch/lib/THCUNN/generic/SpatialDilatedMaxPooling.cu rename to aten/src/THCUNN/generic/SpatialDilatedMaxPooling.cu diff --git a/torch/lib/THCUNN/generic/SpatialFractionalMaxPooling.cu b/aten/src/THCUNN/generic/SpatialFractionalMaxPooling.cu similarity index 100% rename from torch/lib/THCUNN/generic/SpatialFractionalMaxPooling.cu rename to aten/src/THCUNN/generic/SpatialFractionalMaxPooling.cu diff --git a/torch/lib/THCUNN/generic/SpatialFullConvolution.cu b/aten/src/THCUNN/generic/SpatialFullConvolution.cu similarity index 100% rename from torch/lib/THCUNN/generic/SpatialFullConvolution.cu rename to aten/src/THCUNN/generic/SpatialFullConvolution.cu diff --git a/torch/lib/THCUNN/generic/SpatialFullDilatedConvolution.cu b/aten/src/THCUNN/generic/SpatialFullDilatedConvolution.cu similarity index 100% rename from torch/lib/THCUNN/generic/SpatialFullDilatedConvolution.cu rename to aten/src/THCUNN/generic/SpatialFullDilatedConvolution.cu diff --git a/torch/lib/THCUNN/generic/SpatialGridSamplerBilinear.cu b/aten/src/THCUNN/generic/SpatialGridSamplerBilinear.cu similarity index 100% rename from torch/lib/THCUNN/generic/SpatialGridSamplerBilinear.cu rename to aten/src/THCUNN/generic/SpatialGridSamplerBilinear.cu diff --git a/torch/lib/THCUNN/generic/SpatialMaxPooling.cu b/aten/src/THCUNN/generic/SpatialMaxPooling.cu similarity index 100% rename from torch/lib/THCUNN/generic/SpatialMaxPooling.cu rename to aten/src/THCUNN/generic/SpatialMaxPooling.cu diff --git a/torch/lib/THCUNN/generic/SpatialMaxUnpooling.cu b/aten/src/THCUNN/generic/SpatialMaxUnpooling.cu similarity index 100% rename from torch/lib/THCUNN/generic/SpatialMaxUnpooling.cu rename to aten/src/THCUNN/generic/SpatialMaxUnpooling.cu diff --git a/torch/lib/THCUNN/generic/SpatialReflectionPadding.cu b/aten/src/THCUNN/generic/SpatialReflectionPadding.cu similarity index 100% rename from torch/lib/THCUNN/generic/SpatialReflectionPadding.cu rename to aten/src/THCUNN/generic/SpatialReflectionPadding.cu diff --git a/torch/lib/THCUNN/generic/SpatialReplicationPadding.cu b/aten/src/THCUNN/generic/SpatialReplicationPadding.cu similarity index 100% rename from torch/lib/THCUNN/generic/SpatialReplicationPadding.cu rename to aten/src/THCUNN/generic/SpatialReplicationPadding.cu diff --git a/torch/lib/THCUNN/generic/SpatialSubSampling.cu b/aten/src/THCUNN/generic/SpatialSubSampling.cu similarity index 100% rename from torch/lib/THCUNN/generic/SpatialSubSampling.cu rename to aten/src/THCUNN/generic/SpatialSubSampling.cu diff --git a/torch/lib/THCUNN/generic/SpatialUpSamplingBilinear.cu b/aten/src/THCUNN/generic/SpatialUpSamplingBilinear.cu similarity index 100% rename from torch/lib/THCUNN/generic/SpatialUpSamplingBilinear.cu rename to aten/src/THCUNN/generic/SpatialUpSamplingBilinear.cu diff --git a/torch/lib/THCUNN/generic/SpatialUpSamplingNearest.cu b/aten/src/THCUNN/generic/SpatialUpSamplingNearest.cu similarity index 100% rename from torch/lib/THCUNN/generic/SpatialUpSamplingNearest.cu rename to aten/src/THCUNN/generic/SpatialUpSamplingNearest.cu diff --git a/torch/lib/THCUNN/generic/Sqrt.cu b/aten/src/THCUNN/generic/Sqrt.cu similarity index 100% rename from torch/lib/THCUNN/generic/Sqrt.cu rename to aten/src/THCUNN/generic/Sqrt.cu diff --git a/torch/lib/THCUNN/generic/Square.cu b/aten/src/THCUNN/generic/Square.cu similarity index 100% rename from torch/lib/THCUNN/generic/Square.cu rename to aten/src/THCUNN/generic/Square.cu diff --git a/torch/lib/THCUNN/generic/THCUNN.h b/aten/src/THCUNN/generic/THCUNN.h similarity index 100% rename from torch/lib/THCUNN/generic/THCUNN.h rename to aten/src/THCUNN/generic/THCUNN.h diff --git a/torch/lib/THCUNN/generic/Tanh.cu b/aten/src/THCUNN/generic/Tanh.cu similarity index 100% rename from torch/lib/THCUNN/generic/Tanh.cu rename to aten/src/THCUNN/generic/Tanh.cu diff --git a/torch/lib/THCUNN/generic/TemporalConvolution.cu b/aten/src/THCUNN/generic/TemporalConvolution.cu similarity index 100% rename from torch/lib/THCUNN/generic/TemporalConvolution.cu rename to aten/src/THCUNN/generic/TemporalConvolution.cu diff --git a/torch/lib/THCUNN/generic/TemporalMaxPooling.cu b/aten/src/THCUNN/generic/TemporalMaxPooling.cu similarity index 100% rename from torch/lib/THCUNN/generic/TemporalMaxPooling.cu rename to aten/src/THCUNN/generic/TemporalMaxPooling.cu diff --git a/torch/lib/THCUNN/generic/TemporalReflectionPadding.cu b/aten/src/THCUNN/generic/TemporalReflectionPadding.cu similarity index 100% rename from torch/lib/THCUNN/generic/TemporalReflectionPadding.cu rename to aten/src/THCUNN/generic/TemporalReflectionPadding.cu diff --git a/torch/lib/THCUNN/generic/TemporalReplicationPadding.cu b/aten/src/THCUNN/generic/TemporalReplicationPadding.cu similarity index 100% rename from torch/lib/THCUNN/generic/TemporalReplicationPadding.cu rename to aten/src/THCUNN/generic/TemporalReplicationPadding.cu diff --git a/torch/lib/THCUNN/generic/TemporalRowConvolution.cu b/aten/src/THCUNN/generic/TemporalRowConvolution.cu similarity index 100% rename from torch/lib/THCUNN/generic/TemporalRowConvolution.cu rename to aten/src/THCUNN/generic/TemporalRowConvolution.cu diff --git a/torch/lib/THCUNN/generic/TemporalUpSamplingLinear.cu b/aten/src/THCUNN/generic/TemporalUpSamplingLinear.cu similarity index 100% rename from torch/lib/THCUNN/generic/TemporalUpSamplingLinear.cu rename to aten/src/THCUNN/generic/TemporalUpSamplingLinear.cu diff --git a/torch/lib/THCUNN/generic/TemporalUpSamplingNearest.cu b/aten/src/THCUNN/generic/TemporalUpSamplingNearest.cu similarity index 100% rename from torch/lib/THCUNN/generic/TemporalUpSamplingNearest.cu rename to aten/src/THCUNN/generic/TemporalUpSamplingNearest.cu diff --git a/torch/lib/THCUNN/generic/Threshold.cu b/aten/src/THCUNN/generic/Threshold.cu similarity index 100% rename from torch/lib/THCUNN/generic/Threshold.cu rename to aten/src/THCUNN/generic/Threshold.cu diff --git a/torch/lib/THCUNN/generic/VolumetricAdaptiveAveragePooling.cu b/aten/src/THCUNN/generic/VolumetricAdaptiveAveragePooling.cu similarity index 100% rename from torch/lib/THCUNN/generic/VolumetricAdaptiveAveragePooling.cu rename to aten/src/THCUNN/generic/VolumetricAdaptiveAveragePooling.cu diff --git a/torch/lib/THCUNN/generic/VolumetricAdaptiveMaxPooling.cu b/aten/src/THCUNN/generic/VolumetricAdaptiveMaxPooling.cu similarity index 100% rename from torch/lib/THCUNN/generic/VolumetricAdaptiveMaxPooling.cu rename to aten/src/THCUNN/generic/VolumetricAdaptiveMaxPooling.cu diff --git a/torch/lib/THCUNN/generic/VolumetricAveragePooling.cu b/aten/src/THCUNN/generic/VolumetricAveragePooling.cu similarity index 100% rename from torch/lib/THCUNN/generic/VolumetricAveragePooling.cu rename to aten/src/THCUNN/generic/VolumetricAveragePooling.cu diff --git a/torch/lib/THCUNN/generic/VolumetricConvolution.cu b/aten/src/THCUNN/generic/VolumetricConvolution.cu similarity index 100% rename from torch/lib/THCUNN/generic/VolumetricConvolution.cu rename to aten/src/THCUNN/generic/VolumetricConvolution.cu diff --git a/torch/lib/THCUNN/generic/VolumetricDilatedConvolution.cu b/aten/src/THCUNN/generic/VolumetricDilatedConvolution.cu similarity index 100% rename from torch/lib/THCUNN/generic/VolumetricDilatedConvolution.cu rename to aten/src/THCUNN/generic/VolumetricDilatedConvolution.cu diff --git a/torch/lib/THCUNN/generic/VolumetricDilatedMaxPooling.cu b/aten/src/THCUNN/generic/VolumetricDilatedMaxPooling.cu similarity index 100% rename from torch/lib/THCUNN/generic/VolumetricDilatedMaxPooling.cu rename to aten/src/THCUNN/generic/VolumetricDilatedMaxPooling.cu diff --git a/torch/lib/THCUNN/generic/VolumetricFractionalMaxPooling.cu b/aten/src/THCUNN/generic/VolumetricFractionalMaxPooling.cu similarity index 100% rename from torch/lib/THCUNN/generic/VolumetricFractionalMaxPooling.cu rename to aten/src/THCUNN/generic/VolumetricFractionalMaxPooling.cu diff --git a/torch/lib/THCUNN/generic/VolumetricFullConvolution.cu b/aten/src/THCUNN/generic/VolumetricFullConvolution.cu similarity index 100% rename from torch/lib/THCUNN/generic/VolumetricFullConvolution.cu rename to aten/src/THCUNN/generic/VolumetricFullConvolution.cu diff --git a/torch/lib/THCUNN/generic/VolumetricFullDilatedConvolution.cu b/aten/src/THCUNN/generic/VolumetricFullDilatedConvolution.cu similarity index 100% rename from torch/lib/THCUNN/generic/VolumetricFullDilatedConvolution.cu rename to aten/src/THCUNN/generic/VolumetricFullDilatedConvolution.cu diff --git a/torch/lib/THCUNN/generic/VolumetricMaxPooling.cu b/aten/src/THCUNN/generic/VolumetricMaxPooling.cu similarity index 100% rename from torch/lib/THCUNN/generic/VolumetricMaxPooling.cu rename to aten/src/THCUNN/generic/VolumetricMaxPooling.cu diff --git a/torch/lib/THCUNN/generic/VolumetricMaxUnpooling.cu b/aten/src/THCUNN/generic/VolumetricMaxUnpooling.cu similarity index 100% rename from torch/lib/THCUNN/generic/VolumetricMaxUnpooling.cu rename to aten/src/THCUNN/generic/VolumetricMaxUnpooling.cu diff --git a/torch/lib/THCUNN/generic/VolumetricReplicationPadding.cu b/aten/src/THCUNN/generic/VolumetricReplicationPadding.cu similarity index 100% rename from torch/lib/THCUNN/generic/VolumetricReplicationPadding.cu rename to aten/src/THCUNN/generic/VolumetricReplicationPadding.cu diff --git a/torch/lib/THCUNN/generic/VolumetricUpSamplingNearest.cu b/aten/src/THCUNN/generic/VolumetricUpSamplingNearest.cu similarity index 100% rename from torch/lib/THCUNN/generic/VolumetricUpSamplingNearest.cu rename to aten/src/THCUNN/generic/VolumetricUpSamplingNearest.cu diff --git a/torch/lib/THCUNN/generic/VolumetricUpSamplingTrilinear.cu b/aten/src/THCUNN/generic/VolumetricUpSamplingTrilinear.cu similarity index 100% rename from torch/lib/THCUNN/generic/VolumetricUpSamplingTrilinear.cu rename to aten/src/THCUNN/generic/VolumetricUpSamplingTrilinear.cu diff --git a/torch/lib/THCUNN/im2col.h b/aten/src/THCUNN/im2col.h similarity index 100% rename from torch/lib/THCUNN/im2col.h rename to aten/src/THCUNN/im2col.h diff --git a/torch/lib/THCUNN/row2col.h b/aten/src/THCUNN/row2col.h similarity index 100% rename from torch/lib/THCUNN/row2col.h rename to aten/src/THCUNN/row2col.h diff --git a/torch/lib/THCUNN/vol2col.h b/aten/src/THCUNN/vol2col.h similarity index 100% rename from torch/lib/THCUNN/vol2col.h rename to aten/src/THCUNN/vol2col.h diff --git a/torch/lib/THNN/CMakeLists.txt b/aten/src/THNN/CMakeLists.txt similarity index 100% rename from torch/lib/THNN/CMakeLists.txt rename to aten/src/THNN/CMakeLists.txt diff --git a/torch/lib/THNN/README.md b/aten/src/THNN/README.md similarity index 100% rename from torch/lib/THNN/README.md rename to aten/src/THNN/README.md diff --git a/torch/lib/THNN/THNN.h b/aten/src/THNN/THNN.h similarity index 100% rename from torch/lib/THNN/THNN.h rename to aten/src/THNN/THNN.h diff --git a/torch/lib/THNN/doc/api_reference.md b/aten/src/THNN/doc/api_reference.md similarity index 100% rename from torch/lib/THNN/doc/api_reference.md rename to aten/src/THNN/doc/api_reference.md diff --git a/torch/lib/THNN/doc/generate_reference.lua b/aten/src/THNN/doc/generate_reference.lua similarity index 100% rename from torch/lib/THNN/doc/generate_reference.lua rename to aten/src/THNN/doc/generate_reference.lua diff --git a/torch/lib/THNN/doc/style_guidelines.md b/aten/src/THNN/doc/style_guidelines.md similarity index 100% rename from torch/lib/THNN/doc/style_guidelines.md rename to aten/src/THNN/doc/style_guidelines.md diff --git a/torch/lib/THNN/generic/Abs.c b/aten/src/THNN/generic/Abs.c similarity index 100% rename from torch/lib/THNN/generic/Abs.c rename to aten/src/THNN/generic/Abs.c diff --git a/torch/lib/THNN/generic/AbsCriterion.c b/aten/src/THNN/generic/AbsCriterion.c similarity index 100% rename from torch/lib/THNN/generic/AbsCriterion.c rename to aten/src/THNN/generic/AbsCriterion.c diff --git a/torch/lib/THNN/generic/BCECriterion.c b/aten/src/THNN/generic/BCECriterion.c similarity index 100% rename from torch/lib/THNN/generic/BCECriterion.c rename to aten/src/THNN/generic/BCECriterion.c diff --git a/torch/lib/THNN/generic/BatchNormalization.c b/aten/src/THNN/generic/BatchNormalization.c similarity index 100% rename from torch/lib/THNN/generic/BatchNormalization.c rename to aten/src/THNN/generic/BatchNormalization.c diff --git a/torch/lib/THNN/generic/ClassNLLCriterion.c b/aten/src/THNN/generic/ClassNLLCriterion.c similarity index 100% rename from torch/lib/THNN/generic/ClassNLLCriterion.c rename to aten/src/THNN/generic/ClassNLLCriterion.c diff --git a/torch/lib/THNN/generic/DistKLDivCriterion.c b/aten/src/THNN/generic/DistKLDivCriterion.c similarity index 100% rename from torch/lib/THNN/generic/DistKLDivCriterion.c rename to aten/src/THNN/generic/DistKLDivCriterion.c diff --git a/torch/lib/THNN/generic/ELU.c b/aten/src/THNN/generic/ELU.c similarity index 100% rename from torch/lib/THNN/generic/ELU.c rename to aten/src/THNN/generic/ELU.c diff --git a/torch/lib/THNN/generic/FeatureLPPooling.c b/aten/src/THNN/generic/FeatureLPPooling.c similarity index 100% rename from torch/lib/THNN/generic/FeatureLPPooling.c rename to aten/src/THNN/generic/FeatureLPPooling.c diff --git a/torch/lib/THNN/generic/FusedRNNKernel.c b/aten/src/THNN/generic/FusedRNNKernel.c similarity index 100% rename from torch/lib/THNN/generic/FusedRNNKernel.c rename to aten/src/THNN/generic/FusedRNNKernel.c diff --git a/torch/lib/THNN/generic/GatedLinearUnit.c b/aten/src/THNN/generic/GatedLinearUnit.c similarity index 100% rename from torch/lib/THNN/generic/GatedLinearUnit.c rename to aten/src/THNN/generic/GatedLinearUnit.c diff --git a/torch/lib/THNN/generic/HardShrink.c b/aten/src/THNN/generic/HardShrink.c similarity index 100% rename from torch/lib/THNN/generic/HardShrink.c rename to aten/src/THNN/generic/HardShrink.c diff --git a/torch/lib/THNN/generic/HardTanh.c b/aten/src/THNN/generic/HardTanh.c similarity index 100% rename from torch/lib/THNN/generic/HardTanh.c rename to aten/src/THNN/generic/HardTanh.c diff --git a/torch/lib/THNN/generic/IndexLinear.c b/aten/src/THNN/generic/IndexLinear.c similarity index 100% rename from torch/lib/THNN/generic/IndexLinear.c rename to aten/src/THNN/generic/IndexLinear.c diff --git a/torch/lib/THNN/generic/L1Cost.c b/aten/src/THNN/generic/L1Cost.c similarity index 100% rename from torch/lib/THNN/generic/L1Cost.c rename to aten/src/THNN/generic/L1Cost.c diff --git a/torch/lib/THNN/generic/LeakyReLU.c b/aten/src/THNN/generic/LeakyReLU.c similarity index 100% rename from torch/lib/THNN/generic/LeakyReLU.c rename to aten/src/THNN/generic/LeakyReLU.c diff --git a/torch/lib/THNN/generic/Linear.c b/aten/src/THNN/generic/Linear.c similarity index 100% rename from torch/lib/THNN/generic/Linear.c rename to aten/src/THNN/generic/Linear.c diff --git a/torch/lib/THNN/generic/LogSigmoid.c b/aten/src/THNN/generic/LogSigmoid.c similarity index 100% rename from torch/lib/THNN/generic/LogSigmoid.c rename to aten/src/THNN/generic/LogSigmoid.c diff --git a/torch/lib/THNN/generic/LogSoftMax.c b/aten/src/THNN/generic/LogSoftMax.c similarity index 100% rename from torch/lib/THNN/generic/LogSoftMax.c rename to aten/src/THNN/generic/LogSoftMax.c diff --git a/torch/lib/THNN/generic/LookupTable.c b/aten/src/THNN/generic/LookupTable.c similarity index 100% rename from torch/lib/THNN/generic/LookupTable.c rename to aten/src/THNN/generic/LookupTable.c diff --git a/torch/lib/THNN/generic/MSECriterion.c b/aten/src/THNN/generic/MSECriterion.c similarity index 100% rename from torch/lib/THNN/generic/MSECriterion.c rename to aten/src/THNN/generic/MSECriterion.c diff --git a/torch/lib/THNN/generic/MarginCriterion.c b/aten/src/THNN/generic/MarginCriterion.c similarity index 100% rename from torch/lib/THNN/generic/MarginCriterion.c rename to aten/src/THNN/generic/MarginCriterion.c diff --git a/torch/lib/THNN/generic/MultiLabelMarginCriterion.c b/aten/src/THNN/generic/MultiLabelMarginCriterion.c similarity index 100% rename from torch/lib/THNN/generic/MultiLabelMarginCriterion.c rename to aten/src/THNN/generic/MultiLabelMarginCriterion.c diff --git a/torch/lib/THNN/generic/MultiMarginCriterion.c b/aten/src/THNN/generic/MultiMarginCriterion.c similarity index 100% rename from torch/lib/THNN/generic/MultiMarginCriterion.c rename to aten/src/THNN/generic/MultiMarginCriterion.c diff --git a/torch/lib/THNN/generic/PReLU.c b/aten/src/THNN/generic/PReLU.c similarity index 100% rename from torch/lib/THNN/generic/PReLU.c rename to aten/src/THNN/generic/PReLU.c diff --git a/torch/lib/THNN/generic/RReLU.c b/aten/src/THNN/generic/RReLU.c similarity index 100% rename from torch/lib/THNN/generic/RReLU.c rename to aten/src/THNN/generic/RReLU.c diff --git a/torch/lib/THNN/generic/Sigmoid.c b/aten/src/THNN/generic/Sigmoid.c similarity index 100% rename from torch/lib/THNN/generic/Sigmoid.c rename to aten/src/THNN/generic/Sigmoid.c diff --git a/torch/lib/THNN/generic/SmoothL1Criterion.c b/aten/src/THNN/generic/SmoothL1Criterion.c similarity index 100% rename from torch/lib/THNN/generic/SmoothL1Criterion.c rename to aten/src/THNN/generic/SmoothL1Criterion.c diff --git a/torch/lib/THNN/generic/SoftMarginCriterion.c b/aten/src/THNN/generic/SoftMarginCriterion.c similarity index 100% rename from torch/lib/THNN/generic/SoftMarginCriterion.c rename to aten/src/THNN/generic/SoftMarginCriterion.c diff --git a/torch/lib/THNN/generic/SoftMax.c b/aten/src/THNN/generic/SoftMax.c similarity index 100% rename from torch/lib/THNN/generic/SoftMax.c rename to aten/src/THNN/generic/SoftMax.c diff --git a/torch/lib/THNN/generic/SoftPlus.c b/aten/src/THNN/generic/SoftPlus.c similarity index 100% rename from torch/lib/THNN/generic/SoftPlus.c rename to aten/src/THNN/generic/SoftPlus.c diff --git a/torch/lib/THNN/generic/SoftShrink.c b/aten/src/THNN/generic/SoftShrink.c similarity index 100% rename from torch/lib/THNN/generic/SoftShrink.c rename to aten/src/THNN/generic/SoftShrink.c diff --git a/torch/lib/THNN/generic/SparseLinear.c b/aten/src/THNN/generic/SparseLinear.c similarity index 100% rename from torch/lib/THNN/generic/SparseLinear.c rename to aten/src/THNN/generic/SparseLinear.c diff --git a/torch/lib/THNN/generic/SpatialAdaptiveAveragePooling.c b/aten/src/THNN/generic/SpatialAdaptiveAveragePooling.c similarity index 100% rename from torch/lib/THNN/generic/SpatialAdaptiveAveragePooling.c rename to aten/src/THNN/generic/SpatialAdaptiveAveragePooling.c diff --git a/torch/lib/THNN/generic/SpatialAdaptiveMaxPooling.c b/aten/src/THNN/generic/SpatialAdaptiveMaxPooling.c similarity index 100% rename from torch/lib/THNN/generic/SpatialAdaptiveMaxPooling.c rename to aten/src/THNN/generic/SpatialAdaptiveMaxPooling.c diff --git a/torch/lib/THNN/generic/SpatialAveragePooling.c b/aten/src/THNN/generic/SpatialAveragePooling.c similarity index 100% rename from torch/lib/THNN/generic/SpatialAveragePooling.c rename to aten/src/THNN/generic/SpatialAveragePooling.c diff --git a/torch/lib/THNN/generic/SpatialClassNLLCriterion.c b/aten/src/THNN/generic/SpatialClassNLLCriterion.c similarity index 100% rename from torch/lib/THNN/generic/SpatialClassNLLCriterion.c rename to aten/src/THNN/generic/SpatialClassNLLCriterion.c diff --git a/torch/lib/THNN/generic/SpatialConvolutionLocal.c b/aten/src/THNN/generic/SpatialConvolutionLocal.c similarity index 100% rename from torch/lib/THNN/generic/SpatialConvolutionLocal.c rename to aten/src/THNN/generic/SpatialConvolutionLocal.c diff --git a/torch/lib/THNN/generic/SpatialConvolutionMM.c b/aten/src/THNN/generic/SpatialConvolutionMM.c similarity index 100% rename from torch/lib/THNN/generic/SpatialConvolutionMM.c rename to aten/src/THNN/generic/SpatialConvolutionMM.c diff --git a/torch/lib/THNN/generic/SpatialConvolutionMap.c b/aten/src/THNN/generic/SpatialConvolutionMap.c similarity index 100% rename from torch/lib/THNN/generic/SpatialConvolutionMap.c rename to aten/src/THNN/generic/SpatialConvolutionMap.c diff --git a/torch/lib/THNN/generic/SpatialDilatedConvolution.c b/aten/src/THNN/generic/SpatialDilatedConvolution.c similarity index 100% rename from torch/lib/THNN/generic/SpatialDilatedConvolution.c rename to aten/src/THNN/generic/SpatialDilatedConvolution.c diff --git a/torch/lib/THNN/generic/SpatialDilatedMaxPooling.c b/aten/src/THNN/generic/SpatialDilatedMaxPooling.c similarity index 100% rename from torch/lib/THNN/generic/SpatialDilatedMaxPooling.c rename to aten/src/THNN/generic/SpatialDilatedMaxPooling.c diff --git a/torch/lib/THNN/generic/SpatialFractionalMaxPooling.c b/aten/src/THNN/generic/SpatialFractionalMaxPooling.c similarity index 100% rename from torch/lib/THNN/generic/SpatialFractionalMaxPooling.c rename to aten/src/THNN/generic/SpatialFractionalMaxPooling.c diff --git a/torch/lib/THNN/generic/SpatialFullConvolution.c b/aten/src/THNN/generic/SpatialFullConvolution.c similarity index 100% rename from torch/lib/THNN/generic/SpatialFullConvolution.c rename to aten/src/THNN/generic/SpatialFullConvolution.c diff --git a/torch/lib/THNN/generic/SpatialFullConvolutionMap.c b/aten/src/THNN/generic/SpatialFullConvolutionMap.c similarity index 100% rename from torch/lib/THNN/generic/SpatialFullConvolutionMap.c rename to aten/src/THNN/generic/SpatialFullConvolutionMap.c diff --git a/torch/lib/THNN/generic/SpatialFullDilatedConvolution.c b/aten/src/THNN/generic/SpatialFullDilatedConvolution.c similarity index 100% rename from torch/lib/THNN/generic/SpatialFullDilatedConvolution.c rename to aten/src/THNN/generic/SpatialFullDilatedConvolution.c diff --git a/torch/lib/THNN/generic/SpatialGridSamplerBilinear.c b/aten/src/THNN/generic/SpatialGridSamplerBilinear.c similarity index 100% rename from torch/lib/THNN/generic/SpatialGridSamplerBilinear.c rename to aten/src/THNN/generic/SpatialGridSamplerBilinear.c diff --git a/torch/lib/THNN/generic/SpatialMaxPooling.c b/aten/src/THNN/generic/SpatialMaxPooling.c similarity index 100% rename from torch/lib/THNN/generic/SpatialMaxPooling.c rename to aten/src/THNN/generic/SpatialMaxPooling.c diff --git a/torch/lib/THNN/generic/SpatialMaxUnpooling.c b/aten/src/THNN/generic/SpatialMaxUnpooling.c similarity index 100% rename from torch/lib/THNN/generic/SpatialMaxUnpooling.c rename to aten/src/THNN/generic/SpatialMaxUnpooling.c diff --git a/torch/lib/THNN/generic/SpatialReflectionPadding.c b/aten/src/THNN/generic/SpatialReflectionPadding.c similarity index 100% rename from torch/lib/THNN/generic/SpatialReflectionPadding.c rename to aten/src/THNN/generic/SpatialReflectionPadding.c diff --git a/torch/lib/THNN/generic/SpatialReplicationPadding.c b/aten/src/THNN/generic/SpatialReplicationPadding.c similarity index 100% rename from torch/lib/THNN/generic/SpatialReplicationPadding.c rename to aten/src/THNN/generic/SpatialReplicationPadding.c diff --git a/torch/lib/THNN/generic/SpatialSubSampling.c b/aten/src/THNN/generic/SpatialSubSampling.c similarity index 100% rename from torch/lib/THNN/generic/SpatialSubSampling.c rename to aten/src/THNN/generic/SpatialSubSampling.c diff --git a/torch/lib/THNN/generic/SpatialUpSamplingBilinear.c b/aten/src/THNN/generic/SpatialUpSamplingBilinear.c similarity index 100% rename from torch/lib/THNN/generic/SpatialUpSamplingBilinear.c rename to aten/src/THNN/generic/SpatialUpSamplingBilinear.c diff --git a/torch/lib/THNN/generic/SpatialUpSamplingNearest.c b/aten/src/THNN/generic/SpatialUpSamplingNearest.c similarity index 100% rename from torch/lib/THNN/generic/SpatialUpSamplingNearest.c rename to aten/src/THNN/generic/SpatialUpSamplingNearest.c diff --git a/torch/lib/THNN/generic/Sqrt.c b/aten/src/THNN/generic/Sqrt.c similarity index 100% rename from torch/lib/THNN/generic/Sqrt.c rename to aten/src/THNN/generic/Sqrt.c diff --git a/torch/lib/THNN/generic/Square.c b/aten/src/THNN/generic/Square.c similarity index 100% rename from torch/lib/THNN/generic/Square.c rename to aten/src/THNN/generic/Square.c diff --git a/torch/lib/THNN/generic/THNN.h b/aten/src/THNN/generic/THNN.h similarity index 100% rename from torch/lib/THNN/generic/THNN.h rename to aten/src/THNN/generic/THNN.h diff --git a/torch/lib/THNN/generic/Tanh.c b/aten/src/THNN/generic/Tanh.c similarity index 100% rename from torch/lib/THNN/generic/Tanh.c rename to aten/src/THNN/generic/Tanh.c diff --git a/torch/lib/THNN/generic/TemporalConvolution.c b/aten/src/THNN/generic/TemporalConvolution.c similarity index 100% rename from torch/lib/THNN/generic/TemporalConvolution.c rename to aten/src/THNN/generic/TemporalConvolution.c diff --git a/torch/lib/THNN/generic/TemporalMaxPooling.c b/aten/src/THNN/generic/TemporalMaxPooling.c similarity index 100% rename from torch/lib/THNN/generic/TemporalMaxPooling.c rename to aten/src/THNN/generic/TemporalMaxPooling.c diff --git a/torch/lib/THNN/generic/TemporalReflectionPadding.c b/aten/src/THNN/generic/TemporalReflectionPadding.c similarity index 100% rename from torch/lib/THNN/generic/TemporalReflectionPadding.c rename to aten/src/THNN/generic/TemporalReflectionPadding.c diff --git a/torch/lib/THNN/generic/TemporalReplicationPadding.c b/aten/src/THNN/generic/TemporalReplicationPadding.c similarity index 100% rename from torch/lib/THNN/generic/TemporalReplicationPadding.c rename to aten/src/THNN/generic/TemporalReplicationPadding.c diff --git a/torch/lib/THNN/generic/TemporalRowConvolution.c b/aten/src/THNN/generic/TemporalRowConvolution.c similarity index 100% rename from torch/lib/THNN/generic/TemporalRowConvolution.c rename to aten/src/THNN/generic/TemporalRowConvolution.c diff --git a/torch/lib/THNN/generic/TemporalSubSampling.c b/aten/src/THNN/generic/TemporalSubSampling.c similarity index 100% rename from torch/lib/THNN/generic/TemporalSubSampling.c rename to aten/src/THNN/generic/TemporalSubSampling.c diff --git a/torch/lib/THNN/generic/TemporalUpSamplingLinear.c b/aten/src/THNN/generic/TemporalUpSamplingLinear.c similarity index 100% rename from torch/lib/THNN/generic/TemporalUpSamplingLinear.c rename to aten/src/THNN/generic/TemporalUpSamplingLinear.c diff --git a/torch/lib/THNN/generic/TemporalUpSamplingNearest.c b/aten/src/THNN/generic/TemporalUpSamplingNearest.c similarity index 100% rename from torch/lib/THNN/generic/TemporalUpSamplingNearest.c rename to aten/src/THNN/generic/TemporalUpSamplingNearest.c diff --git a/torch/lib/THNN/generic/Threshold.c b/aten/src/THNN/generic/Threshold.c similarity index 100% rename from torch/lib/THNN/generic/Threshold.c rename to aten/src/THNN/generic/Threshold.c diff --git a/torch/lib/THNN/generic/VolumetricAdaptiveAveragePooling.c b/aten/src/THNN/generic/VolumetricAdaptiveAveragePooling.c similarity index 100% rename from torch/lib/THNN/generic/VolumetricAdaptiveAveragePooling.c rename to aten/src/THNN/generic/VolumetricAdaptiveAveragePooling.c diff --git a/torch/lib/THNN/generic/VolumetricAdaptiveMaxPooling.c b/aten/src/THNN/generic/VolumetricAdaptiveMaxPooling.c similarity index 100% rename from torch/lib/THNN/generic/VolumetricAdaptiveMaxPooling.c rename to aten/src/THNN/generic/VolumetricAdaptiveMaxPooling.c diff --git a/torch/lib/THNN/generic/VolumetricAveragePooling.c b/aten/src/THNN/generic/VolumetricAveragePooling.c similarity index 100% rename from torch/lib/THNN/generic/VolumetricAveragePooling.c rename to aten/src/THNN/generic/VolumetricAveragePooling.c diff --git a/torch/lib/THNN/generic/VolumetricConvolution.c b/aten/src/THNN/generic/VolumetricConvolution.c similarity index 100% rename from torch/lib/THNN/generic/VolumetricConvolution.c rename to aten/src/THNN/generic/VolumetricConvolution.c diff --git a/torch/lib/THNN/generic/VolumetricConvolutionMM.c b/aten/src/THNN/generic/VolumetricConvolutionMM.c similarity index 100% rename from torch/lib/THNN/generic/VolumetricConvolutionMM.c rename to aten/src/THNN/generic/VolumetricConvolutionMM.c diff --git a/torch/lib/THNN/generic/VolumetricDilatedConvolution.c b/aten/src/THNN/generic/VolumetricDilatedConvolution.c similarity index 100% rename from torch/lib/THNN/generic/VolumetricDilatedConvolution.c rename to aten/src/THNN/generic/VolumetricDilatedConvolution.c diff --git a/torch/lib/THNN/generic/VolumetricDilatedMaxPooling.c b/aten/src/THNN/generic/VolumetricDilatedMaxPooling.c similarity index 100% rename from torch/lib/THNN/generic/VolumetricDilatedMaxPooling.c rename to aten/src/THNN/generic/VolumetricDilatedMaxPooling.c diff --git a/torch/lib/THNN/generic/VolumetricFractionalMaxPooling.c b/aten/src/THNN/generic/VolumetricFractionalMaxPooling.c similarity index 100% rename from torch/lib/THNN/generic/VolumetricFractionalMaxPooling.c rename to aten/src/THNN/generic/VolumetricFractionalMaxPooling.c diff --git a/torch/lib/THNN/generic/VolumetricFullConvolution.c b/aten/src/THNN/generic/VolumetricFullConvolution.c similarity index 100% rename from torch/lib/THNN/generic/VolumetricFullConvolution.c rename to aten/src/THNN/generic/VolumetricFullConvolution.c diff --git a/torch/lib/THNN/generic/VolumetricFullDilatedConvolution.c b/aten/src/THNN/generic/VolumetricFullDilatedConvolution.c similarity index 100% rename from torch/lib/THNN/generic/VolumetricFullDilatedConvolution.c rename to aten/src/THNN/generic/VolumetricFullDilatedConvolution.c diff --git a/torch/lib/THNN/generic/VolumetricMaxPooling.c b/aten/src/THNN/generic/VolumetricMaxPooling.c similarity index 100% rename from torch/lib/THNN/generic/VolumetricMaxPooling.c rename to aten/src/THNN/generic/VolumetricMaxPooling.c diff --git a/torch/lib/THNN/generic/VolumetricMaxUnpooling.c b/aten/src/THNN/generic/VolumetricMaxUnpooling.c similarity index 100% rename from torch/lib/THNN/generic/VolumetricMaxUnpooling.c rename to aten/src/THNN/generic/VolumetricMaxUnpooling.c diff --git a/torch/lib/THNN/generic/VolumetricReplicationPadding.c b/aten/src/THNN/generic/VolumetricReplicationPadding.c similarity index 100% rename from torch/lib/THNN/generic/VolumetricReplicationPadding.c rename to aten/src/THNN/generic/VolumetricReplicationPadding.c diff --git a/torch/lib/THNN/generic/VolumetricUpSamplingNearest.c b/aten/src/THNN/generic/VolumetricUpSamplingNearest.c similarity index 100% rename from torch/lib/THNN/generic/VolumetricUpSamplingNearest.c rename to aten/src/THNN/generic/VolumetricUpSamplingNearest.c diff --git a/torch/lib/THNN/generic/VolumetricUpSamplingTrilinear.c b/aten/src/THNN/generic/VolumetricUpSamplingTrilinear.c similarity index 100% rename from torch/lib/THNN/generic/VolumetricUpSamplingTrilinear.c rename to aten/src/THNN/generic/VolumetricUpSamplingTrilinear.c diff --git a/torch/lib/THNN/generic/unfold.c b/aten/src/THNN/generic/unfold.c similarity index 100% rename from torch/lib/THNN/generic/unfold.c rename to aten/src/THNN/generic/unfold.c diff --git a/torch/lib/THNN/init.c b/aten/src/THNN/init.c similarity index 100% rename from torch/lib/THNN/init.c rename to aten/src/THNN/init.c diff --git a/torch/lib/THS/CMakeLists.txt b/aten/src/THS/CMakeLists.txt similarity index 100% rename from torch/lib/THS/CMakeLists.txt rename to aten/src/THS/CMakeLists.txt diff --git a/torch/lib/THS/THS.h b/aten/src/THS/THS.h similarity index 100% rename from torch/lib/THS/THS.h rename to aten/src/THS/THS.h diff --git a/torch/lib/THS/THSGenerateAllTypes.h b/aten/src/THS/THSGenerateAllTypes.h similarity index 100% rename from torch/lib/THS/THSGenerateAllTypes.h rename to aten/src/THS/THSGenerateAllTypes.h diff --git a/torch/lib/THS/THSGenerateFloatTypes.h b/aten/src/THS/THSGenerateFloatTypes.h similarity index 100% rename from torch/lib/THS/THSGenerateFloatTypes.h rename to aten/src/THS/THSGenerateFloatTypes.h diff --git a/torch/lib/THS/THSGenerateIntTypes.h b/aten/src/THS/THSGenerateIntTypes.h similarity index 100% rename from torch/lib/THS/THSGenerateIntTypes.h rename to aten/src/THS/THSGenerateIntTypes.h diff --git a/torch/lib/THS/THSTensor.c b/aten/src/THS/THSTensor.c similarity index 100% rename from torch/lib/THS/THSTensor.c rename to aten/src/THS/THSTensor.c diff --git a/torch/lib/THS/THSTensor.h b/aten/src/THS/THSTensor.h similarity index 100% rename from torch/lib/THS/THSTensor.h rename to aten/src/THS/THSTensor.h diff --git a/torch/lib/THS/generic/THSTensor.c b/aten/src/THS/generic/THSTensor.c similarity index 100% rename from torch/lib/THS/generic/THSTensor.c rename to aten/src/THS/generic/THSTensor.c diff --git a/torch/lib/THS/generic/THSTensor.h b/aten/src/THS/generic/THSTensor.h similarity index 100% rename from torch/lib/THS/generic/THSTensor.h rename to aten/src/THS/generic/THSTensor.h diff --git a/torch/lib/THS/generic/THSTensorMath.c b/aten/src/THS/generic/THSTensorMath.c similarity index 100% rename from torch/lib/THS/generic/THSTensorMath.c rename to aten/src/THS/generic/THSTensorMath.c diff --git a/torch/lib/THS/generic/THSTensorMath.h b/aten/src/THS/generic/THSTensorMath.h similarity index 100% rename from torch/lib/THS/generic/THSTensorMath.h rename to aten/src/THS/generic/THSTensorMath.h