MCPcopy Index your code
hub / github.com/MoonInTheRiver/DiffSinger / num_tokens

Method num_tokens

tasks/base_task.py:51–52  ·  view source on GitHub ↗
(self, index)

Source from the content-addressed store, hash-verified

49 return len(self._sizes)
50
51 def num_tokens(self, index):
52 return self.size(index)
53
54 def size(self, index):
55 """Return an example's size as a float or tuple. This value is used when

Callers

nothing calls this directly

Calls 1

sizeMethod · 0.95

Tested by

no test coverage detected