else:
names = names or self._load_names_from_file(names_file)
self._int2str = [tf.compat.as_text(name) for name in names]
self._str2int = {name: i for i, name in enumerate(self._int2str)}
self._num_classes = len(self._str2int)
@property
After Change
self._int2str = None
// The label is explicitly set as undefined (no label defined)
if not sum(bool(a)for a in (num_classes, names, names_file)):
return
if sum(bool(a) for a in (num_classes, names, names_file)) != 1: