MCPcopy Create free account
hub / github.com/InternScience/SciReason / release

Method release

opencompass/models/base_api.py:100–107  ·  view source on GitHub ↗

Release concurrent resources if acquired. This behavior will fall back to do nothing if there are no concurrent resources.

(self)

Source from the content-addressed store, hash-verified

98 self.wait()
99
100 def release(self):
101 """Release concurrent resources if acquired.
102
103 This behavior will fall back to do nothing if there are no concurrent
104 resources.
105 """
106 if hasattr(self, 'tokens'):
107 self.tokens.release()
108
109 @abstractmethod
110 def get_ppl(self,

Callers 15

submitMethod · 0.80
_generateMethod · 0.80
_generateMethod · 0.80
_generateMethod · 0.80
_generateMethod · 0.80
_generateMethod · 0.80
_generateMethod · 0.80
_add_tokensMethod · 0.80
_generateMethod · 0.80
_generateMethod · 0.80
_generateMethod · 0.80
_generateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected