(
values: TensorLike|WebGLData|WebGPUData, shape?: ShapeMap[R],
dtype?: DataType)
| 202 | * @doc {heading: 'Tensors', subheading: 'Creation'} |
| 203 | */ |
| 204 | export function tensor<R extends Rank>( |
| 205 | values: TensorLike|WebGLData|WebGPUData, shape?: ShapeMap[R], |
| 206 | dtype?: DataType): Tensor<R> { |
| 207 | const inferredShape = inferShape(values, dtype); |
| 208 | return makeTensor(values, shape, inferredShape, dtype) as Tensor<R>; |
| 209 | } |
no test coverage detected
searching dependent graphs…