Skip to content

Commit f18b4b6

Browse files
Xiaolong Wangfacebook-github-bot
authored andcommitted
bug in mtml: shared_embedding
Summary: A bug reported in MTML group: https://fburl.com/lumicchc The reason is that in MTML, the `task_shared_embedding` was not correctly initalized in python Reviewed By: xianjiec Differential Revision: D5502875 fbshipit-source-id: 3538d917392568ecd37c39059dc86f866bce9543
1 parent d7d0e66 commit f18b4b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

caffe2/operators/distance_op.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ bool DotProductOp<float, CPUContext>::RunOnDevice() {
197197
auto* result = Output(DOT_OUT);
198198
CAFFE_ENFORCE_EQ(X.ndim(), Y.ndim());
199199
for (int i = 0; i < X.ndim(); ++i) {
200-
CAFFE_ENFORCE_EQ(X.dim32(i), Y.dim32(i));
200+
CAFFE_ENFORCE_EQ(X.dim32(i), Y.dim32(i), "dimension at ", i);
201201
}
202202
int N, D;
203203
if (X.size() > 0) {

0 commit comments

Comments
 (0)