* Create a new Scalar that can be passed to a PackedFunc. * @param value The number value. * @param dtype The dtype string. * @returns The created scalar.
(value: number, dtype: string)
| 1462 | * @returns The created scalar. |
| 1463 | */ |
| 1464 | scalar(value: number, dtype: string): Scalar { |
| 1465 | return new Scalar(value, dtype); |
| 1466 | } |
| 1467 | |
| 1468 | /** |
| 1469 | * Create a new {@link DLDevice} |
no outgoing calls
no test coverage detected