()
| 703 | |
| 704 | /** Returns an instance of the Node.js backend. */ |
| 705 | export function nodeBackend(): NodeJSKernelBackend { |
| 706 | return tf.findBackend('tensorflow') as NodeJSKernelBackend; |
| 707 | } |
| 708 | |
| 709 | /** Returns the TF dtype for a given DataType. */ |
| 710 | export function getTFDType(dataType: tf.DataType): number { |
no test coverage detected
searching dependent graphs…