MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / setup

Method setup

bench/python/all_ops/op_cache_limit.py:94–98  ·  view source on GitHub ↗
(self, input)

Source from the content-addressed store, hash-verified

92# This is the {non-random, large} case. This is the best case scenario, always re-using the cache
93class OpCacheLimitLarge(BaseOpCacheLimit):
94 def setup(self, input):
95 # Set the cache limit to the total gpu memory for this benchmark
96 # low=1000, high=1001 results in always creating tensor's of shape (1000,1000,3)
97 total = torch.cuda.mem_get_info()[1]
98 super().setup(input, total, low=1000, high=1001)
99
100 def run(self, input):
101 super().run(input)

Callers

nothing calls this directly

Calls 1

setupMethod · 0.45

Tested by

no test coverage detected