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

Method constructor

tfjs-converter/src/executor/tensor_array.ts:36–42  ·  view source on GitHub ↗
(
      readonly name: string, readonly dtype: DataType, private maxSize: number,
      private elementShape: number[], readonly identicalElementShapes: boolean,
      readonly dynamicSize: boolean, readonly clearAfterRead: boolean)

Source from the content-addressed store, hash-verified

34 private closed_ = false;
35 readonly idTensor: Tensor;
36 constructor(
37 readonly name: string, readonly dtype: DataType, private maxSize: number,
38 private elementShape: number[], readonly identicalElementShapes: boolean,
39 readonly dynamicSize: boolean, readonly clearAfterRead: boolean) {
40 this.idTensor = scalar(0);
41 keep(this.idTensor);
42 }
43
44 get id() {
45 return this.idTensor.id;

Callers

nothing calls this directly

Calls 2

scalarFunction · 0.90
keepFunction · 0.90

Tested by

no test coverage detected