MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / __init__

Method __init__

test/general/lm_eval/base.py:953–961  ·  view source on GitHub ↗
(self, request_type, args, index=None)

Source from the content-addressed store, hash-verified

951
952class Request:
953 def __init__(self, request_type, args, index=None):
954 if request_type not in REQUEST_RETURN_LENGTHS.keys():
955 raise NotImplementedError(
956 "The request type {} is not implemented!".format(request_type)
957 )
958
959 self.request_type = request_type
960 self.args = args
961 self.index = index
962
963 def __iter__(self):
964 if REQUEST_RETURN_LENGTHS[self.request_type] is None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected