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

N-d tiling (aka repmat) #966

Closed
petergehler opened this issue Aug 22, 2014 · 4 comments
Closed

N-d tiling (aka repmat) #966

petergehler opened this issue Aug 22, 2014 · 4 comments

Comments

@petergehler
Copy link

I am looking for a N-d tiling operation (aka repmat in matlab) and did not find one in the current dev branch. The concat layer does provide some of its functionality already. Is there an easy way to stich it together with current layers already, otherwise I would create a new one based on the concat implementation. Any hints?

@petergehler
Copy link
Author

I wrote a layer that does replicate and tile the input blob, so to have the same functionality of matlabs repmat. You can replicate channels, height, and width. The implementation right now is brute force, in both forward and backward pass, the code walks over all elements of the blob. Maybe a smarter implementation would use the split and concat layer (and extend the latter one to concat other dimensions). It works for me, I can create a pull request if this is thought to be of interest.

@shelhamer
Copy link
Member

Can you explain the purpose of this layer? If it is to make a blob for input to multiple layers Caffe can do this by declaring a top blob as the bottom of several layers already and constructing the DAG model accordingly. If you can motivate the tiling layer or anyone else chimes in with the need then please PR it to dev.

@shelhamer
Copy link
Member

Satisfied by #2083.

@jeffdonahue jeffdonahue mentioned this issue Mar 9, 2015
@longjon longjon closed this as completed May 9, 2015
@haihaoshen
Copy link

Hi, would you take a look TileLayer Usage #4422?

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

4 participants