MCPcopy Index your code
hub / github.com/lutzroeder/netron / _read

Method _read

source/python.js:3348–3360  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3346 return this._strides;
3347 }
3348 _read() {
3349 if (this.data) {
3350 const length = this.dtype.itemsize * this.size;
3351 if (typeof this.data === 'string') {
3352 this.data = this._unescape(this.data, length);
3353 if (this.data.length !== length) {
3354 throw new python.Error('Invalid string array data size.');
3355 }
3356 } else if (this.data.length !== length) {
3357 // throw new python.Error('Invalid array data size.');
3358 }
3359 }
3360 }
3361 _unescape(token, size) {
3362 const length = token.length;
3363 const a = new Uint8Array(length);

Callers 2

constructorMethod · 0.45
__setstate__Method · 0.45

Calls 1

_unescapeMethod · 0.45

Tested by

no test coverage detected