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

Correlation Layer Fast Implementation #27

Closed
sampepose opened this issue Jun 7, 2017 · 1 comment
Closed

Correlation Layer Fast Implementation #27

sampepose opened this issue Jun 7, 2017 · 1 comment

Comments

@sampepose
Copy link

Hi,

I'm trying to rewrite FlownetC in TensorFlow (@el3ment I think you're working on this?). Here's my current code for the correlation layer: (https://gist.github.com/sampepose/1244694a546ed173b2f38d1bb3e6a433)

It's unfortunately slow because it's so many nested loops. Also, the output feature maps don't match your Caffe model, so my logic is either incorrect or the ordering of my output differs from yours. I'm having some trouble understanding the CUDA for the correlation layer. Is there a way to calculate this using batch matrix operations?

Thank you for your help!

@eddy-ilg
Copy link
Collaborator

As far as I can see it is not possible with batch matrix operation. Would it maybe be possible to just take the CUDA code from caffe and transplant it into tensor flow? I would assume that only the interface to the data is different, but the cuda functions take a pointer anyway.

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

2 participants