-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: explicitly instantiated more than once #11
Comments
Are you just using the compilation script as is or did you make any changes? |
I made small changes in the script, which is as follows: mkdir build_dir CUDA_COMPILER=/usr/local/cuda/bin/nvcc SPATIAL_DIMS=3 cmake -DCMAKE_BUILD_TYPE=Debug -D CMAKE_CUDA_COMPILER=${CUDA_COMPILER} make |
Can you pull the latest code for both the CRFasRNN module and the permutohedral_lattice module. |
I have solved the problem of build error by pulling the latest code. Thank you very much! crfasrnnLayer = CRF_RNN_Layer(image_dims=(input_shape[1],input_shape[2],input_shape[3]),num_classes = n_labels,theta_alpha=160.,theta_beta=3.0,theta_gamma=3.0,num_iterations=10,name='crfrnn')[output_layer,inputs] input_shape[0]:width, input_shape[1]:height, input_shape[2]: depth Partial of my model struct code:
Any ideas ? Thank you ! |
Are you using Keras? I haven't used Keras in a while. It is just a matter of fixing up the Keras code. |
Yes. I'm using Keras. I saw there is a file named "crf_as_rnn_keras_layer.py" int your project and I used it as a layer in my model. And do you know how to fix the Keras code? Thank you! |
I don't use Keras but it was working before. |
Thank you very much and looking forward to your reply! |
When I ran "sh build.sh", I got errors as follows:
CRFasRNNLayer/permutohedral_lattice/src/LatticeFilterKernel.cu(114): error: function "LatticeFilter<GPUDevice, T, pd, vd>::compute_position_vectors [with T=float, pd=6, vd=4]" explicitly instantiated more than once
CRFasRNNLayer/permutohedral_lattice/src/LatticeFilterKernel.cu(114): error: function "LatticeFilter<GPUDevice, T, pd, vd>::filter [with T=float, pd=6, vd=4]" explicitly instantiated more than once
CRFasRNNLayer/permutohedral_lattice/src/LatticeFilterKernel.cu(114): error: function "LatticeFilter<GPUDevice, T, pd, vd>::operator() [with T=float, pd=6, vd=4]" explicitly instantiated more than once
CRFasRNNLayer/permutohedral_lattice/src/LatticeFilterKernel.cu(115): error: function "LatticeFilter<GPUDevice, T, pd, vd>::LatticeFilter(tensorflow::OpKernelContext *, int, int, int, int, int *, const T *, const T *, __nv_bool) [with T=double, pd=6, vd=4]" explicitly instantiated more than once
CRFasRNNLayer/permutohedral_lattice/src/LatticeFilterKernel.cu(115): error: function "LatticeFilter<GPUDevice, T, pd, vd>::compute_position_vectors [with T=double, pd=6, vd=4]" explicitly instantiated more than once
CRFasRNNLayer/permutohedral_lattice/src/LatticeFilterKernel.cu(115): error: function "LatticeFilter<GPUDevice, T, pd, vd>::filter [with T=double, pd=6, vd=4]" explicitly instantiated more than once
CRFasRNNLayer/permutohedral_lattice/src/LatticeFilterKernel.cu(115): error: function "LatticeFilter<GPUDevice, T, pd, vd>::operator() [with T=double, pd=6, vd=4]" explicitly instantiated more than once
CRFasRNNLayer/permutohedral_lattice/src/LatticeFilterKernel.cu(69): error: type name is not allowed
CRFasRNNLayer/permutohedral_lattice/src/LatticeFilterKernel.cu(69): error: nonstandard form for taking the address of a member function
CRFasRNNLayer/permutohedral_lattice/src/LatticeFilterKernel.cu(69): error: expected an expression
CRFasRNNLayer/permutohedral_lattice/src/LatticeFilterKernel.cu(76): warning: parsing restarts here after previous syntax error
11 errors detected in the compilation of "/tmp/tmpxft_0000064d_00000000-6_LatticeFilterKernel.cpp1.ii".
CMakeFiles/lattice_filter.dir/build.make:75: recipe for target 'CMakeFiles/lattice_filter.dir/src/LatticeFilterKernel.cu.o' failed
make[2]: *** [CMakeFiles/lattice_filter.dir/src/LatticeFilterKernel.cu.o] Error 1
CMakeFiles/Makefile2:72: recipe for target 'CMakeFiles/lattice_filter.dir/all' failed
make[1]: *** [CMakeFiles/lattice_filter.dir/all] Error 2
Makefile:83: recipe for target 'all' failed
make: *** [all] Error 2
And ideas about the problem? Thank you !
The text was updated successfully, but these errors were encountered: