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/24 12:35:25 UTC
[GitHub] eric-haibin-lin commented on a change in pull request #9625: [WIP] sparse regression operators
eric-haibin-lin commented on a change in pull request #9625: [WIP] sparse regression operators
URL: https://github.com/apache/incubator-mxnet/pull/9625#discussion_r170420190
##########
File path: src/operator/regression_output-inl.h
##########
@@ -77,22 +78,73 @@ inline bool RegressionOpShape(const nnvm::NodeAttrs& attrs,
return true;
}
+template<int label_pos>
+inline bool RegressionInferStorageType(const nnvm::NodeAttrs& attrs,
+ const int dev_mask,
+ DispatchMode* dispatch_mode,
+ std::vector<int>* in_attrs,
+ std::vector<int>* out_attrs) {
+ const auto label_stype = in_attrs->at(label_pos);
+ auto& out_stype = out_attrs->at(0);
+ bool dispatched = false;
+ if (!dispatched && label_stype == kDefaultStorage) {
Review comment:
Also check data_stype == default?
----------------------------------------------------------------
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