Hi All, thanks for this great library! I’m a newbi...
# hamilton-help
z
Hi All, thanks for this great library! I’m a newbie and not yet fully proficient at using the resources available. Could someone point me in the right direction for a basic question? Assume I have the attached trivial linear DAG taken (almost) from the Hamilton docs. Would it be possible at runtime, without changing code in the DAG modules, to run a partial graph by providing a value for B, and completely skip the evaluation of A, and no longer require external_input?
t
Hi @Zoltan Eisler! If you want to compute
C
, you can pass an input for
external_input
or pass an override for A or B in this case.
Copy code
dr = driver.Builder().with_modules(my_module).build()
results = dr.execute(["C"], overrides={"B": 3.0})
z
Works like a charm! Thanks for the quick answer, the Slack channel and all the other great content really help to get started!
🙌 2