Caenorst commented on a change in pull request #15399: Add unit tests for
TensorRT integration and fix some bugs
URL: https://github.com/apache/incubator-mxnet/pull/15399#discussion_r332088690
##########
File path: src/operator/subgraph/tensorrt/tensorrt-inl.h
##########
@@ -180,6 +253,17 @@ class TensorrtProperty : public SubgraphProperty {
n->attrs.name = "TensorRT" + std::to_string(subgraph_id);
n->attrs.op = Op::Get("_TensorRT");
CHECK(n->attrs.op);
+ // prevent using Gamma value if using fix_gamma on BatchNorm
+ DFSVisit(new_sym.outputs, [&n](const nnvm::NodePtr& node) {
+ if (node->op() == Op::Get("BatchNorm")) {
Review comment:
I think solution 6b22aa4 looks better, I removed mine
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services