question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"ins" and "out" arguments for @graph

See original GitHub issue

@op has the ins and out arguments for specifying inputs and outputs, which accept Ins and Outs, but @graph still has input_defs and output_defs arguments that accept InputDefinitions and OutputDefinitions.

We should make these consistent. Also, we’ve discussed eliminating the default_value and dagster_type attrs of graph input/output defs, because they’re hard to reason about and provide questionable value.

Could look something like:

@graph(ins={"arg1": GraphIn(description="abc")}, out=GraphOut(description="xyz"))
def my_graph(arg1):
    ...

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
alangenfeldcommented, Aug 5, 2021

Graph__ feels off naming wise to me. These are ultimately input & output mappings when they exist on graphs, so maybe something like:

  • MappedIn
  • MapIn
  • Mapped / Mapping (if theres no arg difference between in and out)
0reactions
alangenfeldcommented, Aug 10, 2021

only if, in the body of the decorated function, it’s passed as an input to a node invocation, then it will be mapped

For what its worth, I’m fairly sure we error if it doesn’t get mapped.

That said, I still find your reasoning compelling. Not really happy with these, but throwing them around to help brain storm: Spec, Props, Expose

Read more comments on GitHub >

github_iconTop Results From Across the Web

Constructing argument graphs with deductive arguments
A deductive argument is a pair where the first item is a set of premises, the second item is a claim, and the...
Read more >
Argument graphs and assumption-based argumentation
Focusing on the specific case of Assumption-Based Argumentation (ABA), we propose novel notions of arguments and admissible/grounded extensions, both defined in ...
Read more >
Charting and plotting function arguments
This article will discuss how their charts can be enhanced or customized by modifying the default function arguments. This discussion will start with...
Read more >
How can I get the arguments of the function Graph?
To make this answer complete, I should note that atomic Graph objects do in fact have a representation as a compound expression, ...
Read more >
A Corpus of Argument Networks: Using Graph Properties to ...
Automated identification of divisive issues in the context of argumentative dialogue is closely related to two research areas: argument analysis and controversy ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found