graphscope.framework.operation.Operation.__init__

Operation.__init__(session_id, op_type, inputs=None, output_types=None, config=None, query_args=None)[source]

Creates an Operation.

Parameters
  • op_typetypes_pb2.OperationType Value for the “op” attribute of the OpDef proto.

  • inputs – A list of Operations that will be the parents to self

  • output_types – The operation’s output type

  • config – Dictionary where the key is the attribute name (a string) and the value is the respective “attr” attribute of the OpDef proto (an AttrValue).

  • query_args – Values that used as query parameters when evaluating app.

Raises
  • TypeError – if op_def is not a OpDef, or if g is not a Dag.

  • ValueError – if the op_def name is not valid.