Skip to content

Commit

Permalink
fix(//core/conversion/converters/impl/linear): In inserting flatten for
Browse files Browse the repository at this point in the history
layers other than conv, did not remove batch size from tensor shape

Signed-off-by: Naren Dasan <naren@narendasan.com>
Signed-off-by: Naren Dasan <narens@nvidia.com>
  • Loading branch information
narendasan committed Mar 28, 2020
1 parent 36b2eb4 commit 377ad67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/conversion/converters/impl/linear.cpp
Expand Up @@ -27,7 +27,7 @@ auto linear_registrations = RegisterNodeConversionPatterns()
new_shape.push_back(shape[0]);
new_shape.push_back(1);
new_shape.push_back(1);
new_shape.push_back(util::volume(util::toDims(shape)));
new_shape.push_back(util::volume(util::toDims(shape)) / shape[0]);

auto new_dims = util::toDims(new_shape);
LOG_DEBUG("Input shape is less than 4D got: " << util::toDims(shape) << ", inserting shuffle layer to reshape to 4D tensor shape: " << new_dims);
Expand Down

0 comments on commit 377ad67

Please sign in to comment.