浏览代码

Fix sequential_forward()

Aleksandr Borzunov 2 年之前
父节点
当前提交
756e27707f
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/client/sequential_autograd.py

+ 1 - 1
src/client/sequential_autograd.py

@@ -48,7 +48,7 @@ async def sequential_forward(
     outputs = inputs
 
     block_idx = start_index
-    while block_idx < len(sequence_manager):
+    while block_idx < end_index:
         for attempt_no in itertools.count():
             logger.debug(f"Forward: block {block_idx}, attempt {attempt_no}")
             try: