File fix-call-of-onnxInitGraph.patch of Package python-torch

From 872d5e67e06e8fbde32d31dd91e07fc137677d9d Mon Sep 17 00:00:00 2001
From: Christian Goll <cgoll@suse.de>
Date: Tue, 23 Jun 2020 16:55:25 +0200
Subject: [PATCH] fix call of onnxInitGraph() Removed max_seq_size_ as
 onnxInitGraph() does not need this argument any more

---
 caffe2/opt/onnxifi_op.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/caffe2/opt/onnxifi_op.h b/caffe2/opt/onnxifi_op.h
index c45ad7c9f8..b5df81ef03 100644
--- a/caffe2/opt/onnxifi_op.h
+++ b/caffe2/opt/onnxifi_op.h
@@ -256,7 +256,6 @@ class OnnxifiOp final : public Operator<Context> {
               weight_descs.size(),
               weight_descs.data(),
               &graph,
-              static_cast<uint32_t>(max_seq_size_),
               defered_blob_reader),
           ONNXIFI_STATUS_SUCCESS);
 
-- 
2.25.0

openSUSE Build Service is sponsored by