MCPcopy Create free account
hub / github.com/BVLC/caffe / IncrementErrorCount

Method IncrementErrorCount

scripts/cpp_lint.py:751–759  ·  view source on GitHub ↗

Bumps the module's error statistic.

(self, category)

Source from the content-addressed store, hash-verified

749 self.errors_by_category = {}
750
751 def IncrementErrorCount(self, category):
752 """Bumps the module's error statistic."""
753 self.error_count += 1
754 if self.counting in ('toplevel', 'detailed'):
755 if self.counting != 'detailed':
756 category = category.split('/')[0]
757 if category not in self.errors_by_category:
758 self.errors_by_category[category] = 0
759 self.errors_by_category[category] += 1
760
761 def PrintErrorCounts(self):
762 """Print a summary of errors by category, and the total."""

Callers 1

ErrorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected