(self, input)
| 92 | # This is the {non-random, large} case. This is the best case scenario, always re-using the cache |
| 93 | class 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) |