public StackedRNNCells(StackedRNNCellsArgs args) : base(args) { Cells = args.Cells; //Cells.reverse_state_order = kwargs.pop('reverse_state_order', False); // self.reverse_state_order = kwargs.pop('reverse_state_order', False) // if self.reverse_state_order: // logging.warning('reverse_state_order=True in StackedRNNCells will soon ' // 'be deprecated. Please update the code to work with the ' // 'natural order of states if you rely on the RNN states, ' // 'eg RNN(return_state=True).') // super(StackedRNNCells, self).__init__(**kwargs) throw new NotImplementedException(""); }
public StackedRNNCells(StackedRNNCellsArgs args) : base(args) { if (args.Kwargs == null) { args.Kwargs = new Dictionary <string, object>(); } Cells = args.Cells; reverse_state_order = (bool)args.Kwargs.Get("reverse_state_order", false); if (reverse_state_order) { throw new WarningException("reverse_state_order=True in StackedRNNCells will soon " + "be deprecated. Please update the code to work with the " + "natural order of states if you rely on the RNN states, " + "eg RNN(return_state=True)."); } }