* Copy the tensor's data to a new GPU resource. Comparing to the `dataSync()` * and `data()`, this method prevents data from being downloaded to CPU. * * For WebGL backend, the data will be stored on a densely packed texture. * This means that the texture will use the RGBA channels to st
(options?: DataToGPUOptions)
| 398 | * @doc {heading: 'Tensors', subheading: 'Classes'} |
| 399 | */ |
| 400 | dataToGPU(options?: DataToGPUOptions): GPUData { |
| 401 | this.throwIfDisposed(); |
| 402 | return trackerFn().readToGPU(this.dataId, options); |
| 403 | } |
| 404 | |
| 405 | /** |
| 406 | * Synchronously downloads the values from the `tf.Tensor`. This blocks the |
nothing calls this directly
no test coverage detected