You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ta...@apache.org on 2019/08/11 04:23:57 UTC
[incubator-mxnet] branch v1.5.x updated: changed constructor args
(#15601) (#15827)
This is an automated email from the ASF dual-hosted git repository.
taolv pushed a commit to branch v1.5.x
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/v1.5.x by this push:
new 2524bc7 changed constructor args (#15601) (#15827)
2524bc7 is described below
commit 2524bc73cb65905e6e8a79d07f42d5f14e9dfb00
Author: Tao Lv <ta...@intel.com>
AuthorDate: Sun Aug 11 12:23:10 2019 +0800
changed constructor args (#15601) (#15827)
---
plugin/warpctc/warpctc-inl.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/warpctc/warpctc-inl.h b/plugin/warpctc/warpctc-inl.h
index 37677d2..9fcbedc 100644
--- a/plugin/warpctc/warpctc-inl.h
+++ b/plugin/warpctc/warpctc-inl.h
@@ -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);