* Creates an immutable `tf.Tensor` object from the buffer. * * @doc {heading: 'Tensors', subheading: 'Creation'}
()
| 155 | * @doc {heading: 'Tensors', subheading: 'Creation'} |
| 156 | */ |
| 157 | toTensor(): Tensor<R> { |
| 158 | return trackerFn().makeTensor(this.values, this.shape, this.dtype) as |
| 159 | Tensor<R>; |
| 160 | } |
| 161 | } |
| 162 | |
| 163 | export interface DataToGPUWebGLOption { |
no test coverage detected