Skip to content

Commit

Permalink
Fix run_decoders bug (#11871)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangw1234 authored Aug 20, 2024
1 parent 32f0a77 commit bdaeee1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ def forward(
x_np[2].ctypes.data_as(ctypes.c_void_p),
)
t0 = time.perf_counter()
backend_lib.run_decoders(models_ptr, inputs_ptr, 2, 3)
backend_lib.run_decoders(models_ptr, inputs_ptr, self.intra_stages, 3)
t1 = time.perf_counter()

hidden_states = self.backend_decoders[-1].torch_out[0]
Expand Down

0 comments on commit bdaeee1

Please sign in to comment.