Skip to content

Comments

DEV-28879 Lifted Structured Embedding Code from rksltnl#11

Merged
lou-k merged 1 commit intocuralate:masterfrom
lou-k:DEV-28879
Aug 31, 2017
Merged

DEV-28879 Lifted Structured Embedding Code from rksltnl#11
lou-k merged 1 commit intocuralate:masterfrom
lou-k:DEV-28879

Conversation

@lou-k
Copy link

@lou-k lou-k commented Aug 25, 2017

Copy link

@jes-bz jes-bz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing blocking if the code is just c/p from another working branch, Just two things I noticed.

}

//#ifdef CPU_ONLY
//STUB_GPU(LiftedStructSimilaritySoftmaxLossLayer);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see there is no .cu version of the layer to implement the forward and backwards pass on the GPU. I checked and the papers repo doesn't have it either. This layer should only be used in training correct? So it probably will not be an issue if we end up using it in Prod/looking for max speed.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup, just in training.

blob_pos_diff_.Reshape(bottom[0]->channels(), 1, 1, 1);
blob_neg_diff_.Reshape(bottom[0]->channels(), 1, 1, 1);
}

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This layer is not implementing the reshape fiction? I was under the impression this was required for a layer https://github.com/BVLC/caffe/wiki/Development. I guess this will not cause an issue as long as the net is never resized. Context on the addition of the reshape functionality into Caffe BVLC#594

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤷‍♀️ I didn't write this.

@lou-k lou-k merged commit 410982c into curalate:master Aug 31, 2017
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

Successfully merging this pull request may close these issues.

2 participants