MCPcopy Create free account
hub / github.com/RightNow-AI/TIDE / test_get_layers

Method test_get_layers

tests/test_adapters.py:21–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

19 assert isinstance(adapter, TinyAdapter)
20
21 def test_get_layers(self):
22 model = TinyModel(num_layers=8)
23 adapter = get_adapter(model)
24 layers = adapter.get_layers(model)
25 assert len(layers) == 8
26 assert all(isinstance(l, nn.Module) for l in layers)
27
28 def test_get_hidden_state(self):
29 model = TinyModel()

Callers

nothing calls this directly

Calls 3

TinyModelClass · 0.90
get_adapterFunction · 0.90
get_layersMethod · 0.45

Tested by

no test coverage detected