MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT / findAndRemove

Function findAndRemove

samples/trtexec/profiler.py:67–76  ·  view source on GitHub ↗

Find named row in profile and remove

(profile, name)

Source from the content-addressed store, hash-verified

65
66
67def findAndRemove(profile, name):
68 """Find named row in profile and remove"""
69
70 for r in range(len(profile)):
71 if profile[r]["name"] == name:
72 row = profile[r]
73 del profile[r]
74 return row
75
76 return None
77
78
79def refName(name):

Callers 1

alignDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected