MCPcopy Create free account
hub / github.com/InternRobotics/G2VLM / work

Method work

eval_code/recons/models/moge/utils/pipeline.py:154–160  ·  view source on GitHub ↗

This method defines the job that the node should do for each input item. A item obtained from the input queue is passed as arguments to this method, and the result is placed in the output queue. The method is executed concurrently with other nodes.

(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

152
153 @abstractmethod
154 def work(self, *args, **kwargs) -> Union[Any, Dict[str, Any]]:
155 """
156 This method defines the job that the node should do for each input item.
157 A item obtained from the input queue is passed as arguments to this method, and the result is placed in the output queue.
158 The method is executed concurrently with other nodes.
159 """
160 pass
161
162 def _loop_fn(self, input: Queue, output: Queue, terminate_flag: Event):
163 self.init()

Callers 1

_loop_fnMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected