Add argument cache_max_entry_count to parser.
(parser)
| 519 | |
| 520 | @staticmethod |
| 521 | def cache_max_entry_count(parser): |
| 522 | """Add argument cache_max_entry_count to parser.""" |
| 523 | |
| 524 | return parser.add_argument('--cache-max-entry-count', |
| 525 | type=float, |
| 526 | default=0.8, |
| 527 | help='The percentage of free gpu memory occupied by the k/v ' |
| 528 | 'cache, excluding weights ') |
| 529 | |
| 530 | @staticmethod |
| 531 | def adapters(parser): |
no outgoing calls
no test coverage detected