                         if (numImages % 128 == 0) {
                           cudaTextureObject_t texFilters = THCudaTensor_getTextureObject(filters);
                           cudaTextureObject_t texHidActs = THCudaTensor_getTextureObject(hidActs);
-                            cudaFuncSetCacheConfig(conv_img_acts_manycolor_preloadfh_ty_8_tx_32_c_8_ff_32_fh_16< 8, 32, 4, 8, 32, 16, false, false, true >, cudaFuncCachePreferShared);
-                            conv_img_acts_manycolor_preloadfh_ty_8_tx_32_c_8_ff_32_fh_16< 8, 32, 4, 8, 32, 16, false, false, true ><<<blocks, threads, 0>>>(texHidActs, texFilters, THCudaTensor_data(targets), numModulesY, numModulesX, numImages, numFilters, filterSize, imgSizeY, imgSizeX, paddingStart, moduleStride, numImgColors, numGroups, scaleTargets, scaleOutput);
+                            cudaFuncSetCacheConfig(conv_img_acts_manycolor_preloadfh_ty_8_tx_32_c_8_ff_32_fh_16_tex< 8, 32, 4, 8, 32, 16, false, false, true >, cudaFuncCachePreferShared);
+                            conv_img_acts_manycolor_preloadfh_ty_8_tx_32_c_8_ff_32_fh_16_tex< 8, 32, 4, 8, 32, 16, false, false, true ><<<blocks, threads, 0>>>(texHidActs, texFilters, THCudaTensor_data(targets), numModulesY, numModulesX, numImages, numFilters, filterSize, imgSizeY, imgSizeX, paddingStart, moduleStride, numImgColors, numGroups, scaleTargets, scaleOutput);
                       checkCudaErrors(cudaDestroyTextureObject(texFilters));
                       checkCudaErrors(cudaDestroyTextureObject(texHidActs));
                         }

                        if (numImages % 128 == 0) {
                          cudaTextureObject_t texFilters = THCudaTensor_getTextureObject(filters);
                          cudaTextureObject_t texHidActs = THCudaTensor_getTextureObject(hidActs);
                            cudaFuncSetCacheConfig(conv_img_acts_manycolor_preloadfh_ty_8_tx_32_c_8_ff_32_fh_16< 8, 32, 4, 8, 32, 16, true, false, true >, cudaFuncCachePreferShared);
                            conv_img_acts_manycolor_preloadfh_ty_8_tx_32_c_8_ff_32_fh_16< 8, 32, 4, 8, 32, 16, true, false, true ><<<blocks, threads, 0>>>(texHidActs, texFilters, THCudaTensor_data(targets), numModulesY, numModulesX, numImages, numFilters, filterSize, imgSizeY, imgSizeX, paddingStart, moduleStride, numImgColors, numGroups, scaleTargets, scaleOutput);
                      checkCudaErrors(cudaDestroyTextureObject(texFilters));
                      checkCudaErrors(cudaDestroyTextureObject(texHidActs));
                        }

                        if (numImages % 128 == 0) {
                          cudaTextureObject_t texFilters = THCudaTensor_getTextureObject(filters);
                          cudaTextureObject_t texHidActs = THCudaTensor_getTextureObject(hidActs);
                            cudaFuncSetCacheConfig(conv_img_acts_manycolor_preloadfh_ty_8_tx_32_c_8_ff_32_fh_16_tex< 8, 32, 4, 8, 32, 16, false, false, false >, cudaFuncCachePreferShared);
                            conv_img_acts_manycolor_preloadfh_ty_8_tx_32_c_8_ff_32_fh_16_tex< 8, 32, 4, 8, 32, 16, false, false, false ><<<blocks, threads, 0>>>(texHidActs, texFilters, THCudaTensor_data(targets), numModulesY, numModulesX, numImages, numFilters, filterSize, imgSizeY, imgSizeX, paddingStart, moduleStride, numImgColors, numGroups, scaleTargets, scaleOutput);
                      checkCudaErrors(cudaDestroyTextureObject(texFilters));
                      checkCudaErrors(cudaDestroyTextureObject(texHidActs));
                        }
