class_docstr: Base class for any swiglu operator in :attr:`xformers.ops.swiglu`
class_docstr_tok: ["Base","class","for","any","swiglu","operator","in",":","attr",":","`","xformers.ops.swiglu","`"]
code: def supports(self, op: "SwiGLUOpDispatch") -> bool:
      if self.PACKED_WEIGHTS and not op.packed_weights:
          return False
      return all(c(op) for c in self.constraints)
  
imports: from dataclasses import dataclass
  from typing import Dict, Optional, Sequence, Tuple, Union
  import torch
  import torch.nn.functional
  from torch import nn
  from .common import BaseOperator, get_xformers_operator, register_operator
  from .unbind import stack_or_none, unbind
label_desc: Use image node_id 2 for calling the SwiGLUOp obj's underlying member method code with example usage: obj.supports(op) and returns: all, False