Commit ff701e2 1 parent bc90966 commit ff701e2 Copy full SHA for ff701e2
File tree 1 file changed +12
-4
lines changed
1 file changed +12
-4
lines changed Original file line number Diff line number Diff line change 43
43
44
44
45
45
class DAGNodeOperationType (Enum ):
46
+ """
47
+ There are three types of operations that a DAG node can perform:
48
+ 1. READ: Read from an input channel.
49
+ 2. COMPUTE: Execute the method corresponding to the node.
50
+ 3. WRITE: Write to an output channel.
51
+ """
46
52
READ = "READ"
47
53
COMPUTE = "COMPUTE"
48
54
WRITE = "WRITE"
@@ -54,13 +60,15 @@ def __init__(
54
60
idx : int ,
55
61
operation_type : DAGNodeOperationType ,
56
62
):
57
- # not bind_index
63
+ """
64
+ Args:
65
+ idx: The index of the task that this operation belongs to
66
+ in the actor's ExecutableTask list.
67
+ operation_type: The type of operation to perform.
68
+ """
58
69
self .idx = idx
59
70
self .type = operation_type
60
71
61
- def __repr__ (self ) -> str :
62
- return f"DAGNodeOperation({ self .idx } , { self .type } )"
63
-
64
72
65
73
# Holds the input arguments for an accelerated DAG node.
66
74
@PublicAPI (stability = "alpha" )
You can’t perform that action at this time.
0 commit comments