delete declaration of unused op_node (#6102)
authorQingFu Wei <31616486+yzwqf@users.noreply.github.com>
Tue, 21 Jul 2020 14:51:33 +0000 (22:51 +0800)
committerGitHub <noreply@github.com>
Tue, 21 Jul 2020 14:51:33 +0000 (07:51 -0700)
src/te/operation/compute_op.cc

index 36d2d33..62369f9 100644 (file)
@@ -88,7 +88,6 @@ Array<PrimExpr> BaseComputeOpNode::output_shape(size_t idx) const {
 
 Tensor compute(Array<PrimExpr> shape, FCompute fcompute, std::string name, std::string tag,
                Map<String, ObjectRef> attrs) {
-  auto op_node = make_object<ComputeOpNode>();
   // compute dimension.
   size_t ndim = shape.size();
   std::vector<IterVar> axis;
@@ -105,7 +104,6 @@ Tensor compute(Array<PrimExpr> shape, FCompute fcompute, std::string name, std::
 
 Array<Tensor> compute(Array<PrimExpr> shape, FBatchCompute fcompute, std::string name,
                       std::string tag, Map<String, ObjectRef> attrs) {
-  auto op_node = make_object<ComputeOpNode>();
   // compute dimension.
   size_t ndim = shape.size();
   std::vector<IterVar> axis;