MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / from_config

Method from_config

tensorflow/python/ops/rnn_cell_impl.py:1153–1162  ·  view source on GitHub ↗
(cls, config, custom_objects=None)

Source from the content-addressed store, hash-verified

1151
1152 @classmethod
1153 def from_config(cls, config, custom_objects=None):
1154 config = config.copy()
1155 cell = config.pop("cell")
1156 try:
1157 assert_like_rnncell("cell", cell)
1158 return cls(cell, **config)
1159 except TypeError:
1160 raise ValueError("RNNCellWrapper cannot reconstruct the wrapped cell. "
1161 "Please overwrite the cell in the config with a RNNCell "
1162 "instance.")
1163
1164
1165@tf_export(v1=["nn.rnn_cell.DropoutWrapper"])

Callers

nothing calls this directly

Calls 3

assert_like_rnncellFunction · 0.85
copyMethod · 0.45
popMethod · 0.45

Tested by

no test coverage detected