Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/TensorRT
/ binary
Function
binary
tools/Polygraphy/polygraphy/util/util.py:423–424 ·
view source on GitHub ↗
(mode)
Source
from the content-addressed store, hash-verified
421
422
def
warn_if_wrong_mode(file_like, mode):
423
def
binary(mode):
424
return
"b"
in mode
425
426
def
readable(mode):
427
return
"r"
in mode or
"+"
in mode
Callers
1
warn_if_wrong_mode
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected