Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/microsoft/Cream
/ _get_layer_id
Function
_get_layer_id
TinyCLIP/src/open_clip/model.py:1367–1368 ·
view source on GitHub ↗
(name)
Source
from the content-addressed store, hash-verified
1365
-lambda_init_value)
1366
1367
def
_get_layer_id(name):
1368
return
int(name.split(
'resblocks.'
)[1].split(
'.'
)[0])
1369
1370
for
ename in encoder_names:
1371
# get the depth of the encoder
Callers
1
load_pruned_model
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected