Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DeepRec-AI/DeepRec
/ _clone_layer
Function
_clone_layer
tensorflow/python/keras/models.py:56–57 ·
view source on GitHub ↗
(layer)
Source
from the content-addressed store, hash-verified
54
55
56
def
_clone_layer(layer):
57
return
layer.__class__.from_config(layer.get_config())
58
59
60
def
_insert_ancillary_layers(model, ancillary_layers, metrics_names, new_nodes):
Callers
1
_clone_sequential_model
Function · 0.85
Calls
2
from_config
Method · 0.45
get_config
Method · 0.45
Tested by
no test coverage detected