DiagonalBiLSTM RuntimeError: bool value of Tensor with more than one value is ambiguous

Could you post the code using the functional API?