Fix AttributeError by initializing inputs and outputs attributes in Engine constructor

This commit is contained in:
huchukato
2026-02-27 02:30:44 +01:00
parent 5ab7eedbb9
commit c19731ec58
+2
View File
@@ -248,6 +248,8 @@ class Engine:
self.context = None
self.buffers = OrderedDict()
self.tensors = OrderedDict()
self.inputs = {} # Initialize here
self.outputs = {} # Initialize here
self.cuda_graph_instance = None # cuda graph
self.graph = None