Skip to content
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

Issues AttributeError: 'LookupAlignConvolution2d' object has no attribute '_convolution_op' #3

Open
amcinto opened this issue Dec 4, 2017 · 2 comments

Comments

@amcinto
Copy link

amcinto commented Dec 4, 2017

Initially running the python train.py command the warning/error message that pops up is:
2017-12-04 12:12:56,759 WARNING /root/repos/tensorflow/bazel-bin/tensorflow/core/user_ops/sparse_conv2d.so: cannot open shared object file: Permission denied with the accompanying error message
AttributeError: 'LookupAlignConvolution2d' object has no attribute '_convolution_op'.
Once you give permission to the that file path (assuming you can because we had to give root privileges to each individual path) the warning disappears but the error message stays. Further investigation shows that it could be an issue with the tensorflow version but even running tensorflow 1.3 there is still an issue. The project itself has some issues. Any help would be appreciated! Thanks in advance!

@amcinto
Copy link
Author

amcinto commented Jan 4, 2018

So to anyone who runs into this issue the way to fix it would be to add the lines:
self._convolution_op = nn_ops.Convolution( input_shape, filter_shape=self.kernel.get_shape(), dilation_rate=self.dilation_rate, strides=self.strides, padding=self.padding.upper(), data_format=utils.convert_data_format(self.data_format, self.rank + 2))
into the LookupAlignConvolution2d.py. Put the line of code in between these two lines of code in the .py file and it should work:
self.input_spec = base.InputSpec(ndim=self.rank + 2, axes={channel_axis: input_dim}) self.built = True

@amcinto amcinto closed this as completed Jan 4, 2018
@amcinto amcinto reopened this Jan 4, 2018
@amcinto
Copy link
Author

amcinto commented Jan 4, 2018

I'm still open to any suggestions about this project though! Thanks in advance!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant