ray.dag.input_node.InputNode.__init__#

InputNode.__init__(*args, input_type: type | Dict[int | str, type] | None = None, _other_args_to_resolve=None, **kwargs)[source]#

InputNode should only take attributes of validating and converting input data rather than the input data itself. User input should be provided via ray_dag.execute(user_input).

Parameters:
  • input_type – Describes the data type of inputs user will be giving. - if given through singular InputNode: type of InputNode - if given through InputAttributeNodes: map of key -> type Used when deciding what Gradio block to represent the input nodes with.

  • _other_args_to_resolve – Internal only to keep InputNode’s execution context throughput pickling, replacement and serialization. User should not use or pass this field.