MCPcopy Create free account
hub / github.com/tensorflow/tfjs / constructor

Method constructor

tfjs-core/src/tensor.ts:567–573  ·  view source on GitHub ↗
(
      initialValue: Tensor<R>, public trainable: boolean, name: string,
      tensorId: number)

Source from the content-addressed store, hash-verified

565 name: string;
566
567 constructor(
568 initialValue: Tensor<R>, public trainable: boolean, name: string,
569 tensorId: number) {
570 super(
571 initialValue.shape, initialValue.dtype, initialValue.dataId, tensorId);
572 this.name = name;
573 }
574
575 /**
576 * Assign a new `tf.Tensor` to this variable. The new `tf.Tensor` must have

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected