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

Function totalData

samples/trtexec/profiler.py:51–64  ·  view source on GitHub ↗

Add row at the bottom with the total

(features, profile)

Source from the content-addressed store, hash-verified

49
50
51def totalData(features, profile):
52 """Add row at the bottom with the total"""
53
54 accumulator = {}
55 for f in features:
56 accumulator[f] = 0
57 accumulator["name"] = "total"
58
59 for row in profile:
60 for f in features:
61 if f in row and not f == "name":
62 accumulator[f] += row[f]
63
64 return accumulator
65
66
67def findAndRemove(profile, name):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected