(shape: ShapeMap[R], dtype: DataType, dataId: DataId, id: number)
| 286 | readonly strides: number[]; |
| 287 | |
| 288 | constructor(shape: ShapeMap[R], dtype: DataType, dataId: DataId, id: number) { |
| 289 | this.shape = shape.slice() as ShapeMap[R]; |
| 290 | this.dtype = dtype || 'float32'; |
| 291 | this.size = util.sizeFromShape(shape); |
| 292 | this.strides = computeStrides(shape); |
| 293 | this.dataId = dataId; |
| 294 | this.id = id; |
| 295 | this.rankType = (this.rank < 5 ? this.rank.toString() : 'higher') as R; |
| 296 | } |
| 297 | |
| 298 | get rank(): number { |
| 299 | return this.shape.length; |
nothing calls this directly
no test coverage detected