MCPcopy Index your code
hub / github.com/tensorflow/tfjs / isEmpty

Method isEmpty

tfjs-data/src/util/ring_buffer.ts:97–99  ·  view source on GitHub ↗

* Reports whether the buffer is empty. * @returns true if the number of items in the buffer equals zero, and * false otherwise.

()

Source from the content-addressed store, hash-verified

95 * false otherwise.
96 */
97 isEmpty() {
98 return this.length() === 0;
99 }
100
101 /**
102 * Adds an item to the end of the buffer.

Callers 4

popMethod · 0.95
shiftMethod · 0.95
shuffleExciseMethod · 0.95
serialNextMethod · 0.80

Calls 1

lengthMethod · 0.95

Tested by

no test coverage detected