parameters: (self)
return_statement: return (
          (self.sample_weight_mode is not None and self.sample_weight is None) or
          (self.sample_weight_mode is None and self.sample_weight is not None))
docstring: Check if the sample weight and the mode match or not.
docstring_summary: Check if the sample weight and the mode match or not.
docstring_tokens: Check if the sample weight and the mode match or not .
function: def sample_weights_mismatch(self):
      """Check if the sample weight and the mode match or not."""
      # If there is a mismatch between sample weight mode and the placeholders
      # created, then recompile the sub-graphs that depend on sample weights.
      return (
          (self.sample_weight_mode is not None and self.sample_weight is None) or
          (self.sample_weight_mode is None and self.sample_weight is not None))
function_tokens: def sample_weights_mismatch ( self ) : # If there is a mismatch between sample weight mode and the placeholders # created, then recompile the sub-graphs that depend on sample weights. return ( ( self . sample_weight_mode is not None and self . sample_weight is None ) or ( self . sample_weight_mode is None and self . sample_weight is not None ) )