code: def _has_fully_masked_sequence(mask):
      # Cudnn kernel will error out if the input sequence contains any
      # fully masked data. We walk around this issue by rerouting the computation
      # to standard kernel, until the issue on cudnn side has been fixed.  For a
      # fully masked sequence, it will contain all Falses. To make it easy to
      # check, we inverse the boolean, check if any of the sequence has all True.
      return tf.reduce_any(
          tf.reduce_all(
              tf.logical_not(tf.cast(mask, dtype="bool")), axis=1
          )
      )
  
file_path: keras/keras/backend/tensorflow/rnn.py
imports: import tensorflow
  import tree
  from keras.utils.nest import pack_sequence_as
label_desc: Use image node_id 6 for calling a global function with example usage: _has_fully_masked_sequence(mask) and returns: tf