Ejemplo n.º 1
0
 def execute(self, frame: Sequence[FrameType]) -> Sequence[bytes]:
     point = protobufs.Point()
     point.x = 10
     point.y = 5
     input_count = len(frame)
     column_count = 1
     return [point.SerializeToString() for _ in range(input_count)]
Ejemplo n.º 2
0
 def execute(self, frame: Sequence[FrameType]) -> bytes:
     assert len(frame) == 2
     point = protobufs.Point()
     point.x = 10
     point.y = 5
     return point.SerializeToString()