Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
changed constructor args
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Skalicky committed Jul 19, 2019
1 parent eec0fb4 commit 5c450b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/warpctc/warpctc-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class WarpCTCProp : public OperatorProperty {
CHECK_EQ(in_shape->size(), 2) << "Input:[data, label]";
const mxnet::TShape &dshape = in_shape->at(0);
if (dshape.ndim() == 0) return false;
mxnet::TShape label_shape(dshape.ndim() - 1);
mxnet::TShape label_shape(dshape.ndim() - 1, 1);
label_shape[0] = param_.label_length * (dshape[0] / param_.input_length);
SHAPE_ASSIGN_CHECK(*in_shape, warpctc_enum::kLabel, label_shape);

Expand Down

0 comments on commit 5c450b7

Please sign in to comment.