MCPcopy Create free account
hub / github.com/EmbodiedGPT/EmbodiedGPT_Pytorch / __init__

Method __init__

demo/script.py:236–238  ·  view source on GitHub ↗
(self, stops, encounters=1)

Source from the content-addressed store, hash-verified

234class StoppingCriteriaSub(StoppingCriteria):
235
236 def __init__(self, stops, encounters=1):
237 super().__init__()
238 self.stops = stops
239
240 def __call__(self, input_ids: torch.LongTensor, scores: torch.FloatTensor, **kwargs):
241 for stop in self.stops:

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected