(cls, config, custom_objects=None)
| 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"]) |
nothing calls this directly
no test coverage detected