You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/02/28 01:50:00 UTC
[GitHub] piiswrong commented on a change in pull request #9904: Improve workspace in convolution/deconvolution
piiswrong commented on a change in pull request #9904: Improve workspace in convolution/deconvolution
URL: https://github.com/apache/incubator-mxnet/pull/9904#discussion_r171123906
##########
File path: src/operator/convolution_v1-inl.h
##########
@@ -344,9 +348,7 @@ class ConvolutionV1Op : public Operator {
shape_dstunit_[1],
shape_dstunit_[2] * nstep_);
index_t required_size = scol.Size() + sdst.Size();
- CHECK_GE(param_.workspace, required_size)
- << "\nMinimum workspace size: " << required_size * sizeof(DType) << " Bytes\n"
- << "Given: " << param_.workspace * sizeof(DType) << " Bytes";
+ param_.workspace = required_size;
Review comment:
do you actually need to optimize this?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services