(self)
return all(all_transformers)
Checks if the operator is a transformer
Checks if the operator is a transformer
Checks if the operator is a transformer
def is_transformer(self) -> bool:
        """Checks if the operator is a transformer"""
        sink_nodes = self._find_sink_nodes()
        all_transformers = [
            True if operator.has_method("transform") else False
            for operator in sink_nodes
        ]
        return all(all_transformers)
def is_transformer ( self ) -> bool : sink_nodes = self . _find_sink_nodes ( ) all_transformers = [ True if operator . has_method ( "transform" ) else False for operator in sink_nodes ] return all ( all_transformers )