MCPcopy
hub / github.com/NVIDIA/TensorRT-LLM / clone

Method clone

tensorrt_llm/python_plugin.py:340–345  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

338 self._workspace = workspace
339
340 def clone(self):
341 cls = type(self)
342 cloned_plugin = cls.__new__(cls)
343 super(cls, cloned_plugin).__init__()
344 cloned_plugin.__dict__.update(self._get_dict_to_serialize())
345 return cloned_plugin
346
347 def get_capability_interface(self, type):
348 return self

Callers 15

attach_to_contextMethod · 0.95
run_testFunction · 0.45
forwardMethod · 0.45
test_gpt_attentionMethod · 0.45
test_bert_attentionMethod · 0.45
tllmMethod · 0.45
hfMethod · 0.45
test_phiMethod · 0.45
test_llamaMethod · 0.45
test_gpt_float32Method · 0.45

Calls 4

__new__Method · 0.45
__init__Method · 0.45
updateMethod · 0.45

Tested by 15

run_testFunction · 0.36
test_gpt_attentionMethod · 0.36
test_bert_attentionMethod · 0.36
tllmMethod · 0.36
hfMethod · 0.36
test_phiMethod · 0.36
test_llamaMethod · 0.36
test_gpt_float32Method · 0.36
compare_contextMethod · 0.36
compare_generationMethod · 0.36