(self, model)
| 891 | self.cells = cells |
| 892 | |
| 893 | def create_states(self, model): |
| 894 | states = [] |
| 895 | for i, cell in enumerate(self.cells): |
| 896 | if cell.initializer is None: |
| 897 | raise Exception("Either initial states " |
| 898 | "or initializer have to be set") |
| 899 | |
| 900 | with core.NameScope("layer_{}".format(i)),\ |
| 901 | core.NameScope(cell.name): |
| 902 | states.extend(cell.initializer.create_states(model)) |
| 903 | return states |
| 904 | |
| 905 | |
| 906 | class MultiRNNCell(RNNCell): |
nothing calls this directly
no test coverage detected