MCPcopy Index your code
hub / github.com/tensorflow/tfjs / bufferSync

Method bufferSync

tfjs-core/src/tensor.ts:316–318  ·  view source on GitHub ↗

* Returns a `tf.TensorBuffer` that holds the underlying data. * @doc {heading: 'Tensors', subheading: 'Classes'}

()

Source from the content-addressed store, hash-verified

314 * @doc {heading: 'Tensors', subheading: 'Classes'}
315 */
316 bufferSync<D extends DataType = 'float32'>(): TensorBuffer<R, D> {
317 return opHandler.buffer(this.shape, this.dtype as D, this.dataSync());
318 }
319
320 /**
321 * Returns the tensor data as a nested array. The transfer of data is done

Callers 1

callMethod · 0.45

Calls 2

dataSyncMethod · 0.95
bufferMethod · 0.65

Tested by

no test coverage detected