Gui Pires
01/06/2022, 7:24 PMGui Pires
01/06/2022, 7:26 PMGui Pires
01/06/2022, 7:27 PMGui Pires
01/06/2022, 7:27 PMKevin Kho
Kevin Kho
Gui Pires
01/06/2022, 7:37 PMKevin Kho
Gui Pires
01/06/2022, 7:40 PMKevin Kho
Gui Pires
01/06/2022, 7:49 PMKevin Kho
def a(x):
return x + 1
def b(x):
return x + 1
def c(x)
return x + 1
@task
def a-b-c(x)
return a(b(c(x)))
with Flow(..) as flow:
a-b-c.map([1,2,3,4])
versus
@task
def a(x):
return x + 1
@task
def b(x):
return x + 1
@task
def c(x)
return x + 1
with Flow(..) as flow:
_a = a.map([1,2,3,4])
_b = b.map(_a)
_c = c.map(_b)
Kevin Kho
read-rescale-align
into a bigger taskGui Pires
01/06/2022, 8:02 PMKevin Kho