MCPcopy
hub / github.com/tensorflow/tfjs / toTensor

Method toTensor

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

* Creates an immutable `tf.Tensor` object from the buffer. * * @doc {heading: 'Tensors', subheading: 'Creation'}

()

Source from the content-addressed store, hash-verified

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
163export interface DataToGPUWebGLOption {

Callers 10

setdiff1dAsync_Function · 0.95
buffer_test.tsFile · 0.80
truncatedNormal_Function · 0.80
eye_Function · 0.80
randomGamma_Function · 0.80
randomUniform_Function · 0.80
randomNormal_Function · 0.80
whereImplFunction · 0.80
webgl_ops_test.tsFile · 0.80

Calls 1

makeTensorMethod · 0.65

Tested by

no test coverage detected