Closed Heng14 closed 7 years ago
Hi, thanks for trying my code. I think it is because the problem in your ops_to_register.h. If you check the Makefile in "tensorflow/contrib/makefile", you could find a line "-DUSE_GEMM_FOR_CONV \", which means that the Makefile use GEMM for the conv. However, in your ops_to_register.h, I believe the generated txt didn't use the GEMM. Therefore, try to find the line "Conv2DOp<CPUDevice, float>" in your ops_to_register.h and replaced by "Conv2DUsingGemmOp< float, Im2ColConvFunctor<float, float, float, FastGemmFunctor<float, float, float>>>". Hope this method could solve your problem :)
@JieHe96 it works! thanks so much!
If you find it is helpful, could you please star this repo? Thanks you so much! :)
hi I run by step and occur this problem: Invalid argument: No OpKernel was registered to support Op 'Conv2D' with these attrs. Registered devices: [CPU], Registered kernels: