MCPcopy
hub / github.com/tensorflow/tfjs / push

Method push

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

* Adds an item to the end of the buffer.

(value: T)

Source from the content-addressed store, hash-verified

102 * Adds an item to the end of the buffer.
103 */
104 push(value: T) {
105 if (this.isFull()) {
106 throw new RangeError('Ring buffer is full.');
107 }
108 this.set(this.end, value);
109 this.end = this.wrap(this.end + 1);
110 }
111
112 /**
113 * Adds many items to the end of the buffer, in order.

Callers 15

pushAllMethod · 0.95
karma.conf.jsFile · 0.45
historyFunction · 0.45
getValuesFunction · 0.45
makeCallbackForFunction · 0.45
perClassAccuracyFunction · 0.45
confusionMatrixFunction · 0.45
histogramFunction · 0.45
renderStatsFunction · 0.45
heatmapFunction · 0.45
linechartFunction · 0.45

Calls 3

isFullMethod · 0.95
setMethod · 0.95
wrapMethod · 0.95

Tested by

no test coverage detected