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

Method cast

tensorrt_llm/functional.py:474–478  ·  view source on GitHub ↗

See functional.cast.

(self, dtype)

Source from the content-addressed store, hash-verified

472 return log(self)
473
474 def cast(self, dtype):
475 '''
476 See functional.cast.
477 '''
478 return cast(self, dtype)
479
480 def size(self, dim=None):
481 '''

Callers 15

float_to_flexFunction · 0.80
test_nvfp4_qdqMethod · 0.80
create_dlpack_capsuleFunction · 0.80
get_nparray_from_void_pFunction · 0.80
padFunction · 0.80
arangeFunction · 0.80
allreduceFunction · 0.80
allgatherFunction · 0.80
reduce_scatterFunction · 0.80
sendFunction · 0.80
recvFunction · 0.80

Calls 1

castFunction · 0.85

Tested by 2

test_nvfp4_qdqMethod · 0.64