File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ def run_batched_loop(
169169 response_queue_ids , uids , inputs = zip (* batches )
170170 num_inputs = len (inputs )
171171 try :
172- contexts = [{}] * num_inputs
172+ contexts = [{} for _ in range ( num_inputs )]
173173 if hasattr (lit_spec , "populate_context" ):
174174 for input , context in zip (inputs , contexts ):
175175 lit_spec .populate_context (context , input )
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ def run_batched_streaming_loop(
155155 response_queue_ids , uids , inputs = zip (* batches )
156156 num_inputs = len (inputs )
157157 try :
158- contexts = [{}] * num_inputs
158+ contexts = [{} for _ in range ( num_inputs )]
159159 if hasattr (lit_spec , "populate_context" ):
160160 for input , context in zip (inputs , contexts ):
161161 lit_spec .populate_context (context , input )
You can’t perform that action at this time.
0 commit comments