Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
''
&
#x27;
476
See functional.cast.
477
''
&
#x27;
478
return
cast(self, dtype)
479
480
def
size(self, dim=None):
481
''
&
#x27;
Callers
15
float_to_flex
Function · 0.80
test_cast_fp16_to_fp32
Method · 0.80
test_nvfp4_qdq
Method · 0.80
create_dlpack_capsule
Function · 0.80
get_nparray_from_void_p
Function · 0.80
pad
Function · 0.80
arange
Function · 0.80
allreduce
Function · 0.80
allgather
Function · 0.80
reduce_scatter
Function · 0.80
send
Function · 0.80
recv
Function · 0.80
Calls
1
cast
Function · 0.85
Tested by
2
test_cast_fp16_to_fp32
Method · 0.64
test_nvfp4_qdq
Method · 0.64