ray.dag.input_node.InputNode.__init__#

InputNode.__init__(*args: Any, input_type: type | Dict[int | str, type] | None = None, _other_args_to_resolve: Dict[str, Any] | None = None, **kwargs: Any)[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:
  • *args – Reserved; passing any positional argument raises ValueError.

  • 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.

  • **kwargs – Reserved; passing any keyword argument raises ValueError.