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

Function findLayer

tfjs-layers/src/engine/container.ts:1046–1054  ·  view source on GitHub ↗
(index: number)

Source from the content-addressed store, hash-verified

1044 }
1045
1046 findLayer(index: number): Layer {
1047 if (this.layers.length <= index) {
1048 throw new ValueError(
1049 `Was asked to retrieve layer at index ${index}, but model only ` +
1050 `has ${this.layers.length} layer(s).`);
1051 } else {
1052 return this.layers[index];
1053 }
1054 }
1055
1056 /**
1057 * Retrieves the Container's current loss values.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…