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

Method tensorSize

tfjs-converter/src/executor/hash_table.ts:67–69  ·  view source on GitHub ↗

* The number of items in the hash table as a rank-0 tensor.

()

Source from the content-addressed store, hash-verified

65 * The number of items in the hash table as a rank-0 tensor.
66 */
67 tensorSize(): Tensor {
68 return tfOps.scalar(this.size(), 'int32');
69 }
70
71 /**
72 * Replaces the contents of the table with the specified keys and values.

Callers 1

executeOpFunction · 0.95

Calls 2

sizeMethod · 0.95
scalarMethod · 0.80

Tested by

no test coverage detected