(shape: number[])
| 1282 | } |
| 1283 | |
| 1284 | function ones(shape: number[]): Tensor { |
| 1285 | const values = makeOnesTypedArray(sizeFromShape(shape), 'float32'); |
| 1286 | return ENGINE.makeTensor(values, shape, 'float32'); |
| 1287 | } |
| 1288 | |
| 1289 | export function getOrMakeEngine(): Engine { |
| 1290 | const ns = getGlobalNamespace() as unknown as {_tfengine: Engine}; |
no test coverage detected
searching dependent graphs…