Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
chhwang committed Sep 6, 2024
1 parent 006af24 commit 19d56dd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion python/ark/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from enum import Enum

from . import log
from .tensor import Tensor
from .torch import torch
from .executor import Executor
from .planner import Planner, Plan
Expand Down Expand Up @@ -96,7 +97,12 @@ def launch(
self.state = Runtime.StateCode.LaunchedNotRunning
self.loop_mode = loop_mode

def run(self, iter=1, non_blocking=False, tensor_mappings={}):
def run(
self,
iter: int = 1,
non_blocking: bool = False,
tensor_mappings: Dict[Tensor, torch.Tensor] = {},
):
"""
Run the ARK program for iter iterations and wait for the kernel to finish.
"""
Expand Down

0 comments on commit 19d56dd

Please sign in to comment.