Files
project_6/ex_engine/list_ixformer_funcs.py
2026-08-11 07:47:49 +00:00

22 lines
647 B
Python

#!/usr/bin/env python3
"""List all functions available in ixformer.functions."""
try:
import ixformer.functions as ixf
funcs = [x for x in dir(ixf) if not x.startswith('_')]
print(f"ixformer.functions: {len(funcs)} functions")
for f in sorted(funcs):
obj = getattr(ixf, f)
print(f" {f}: {type(obj).__name__}")
except ImportError as e:
print(f"ixformer.functions not available: {e}")
# Also check what torch.ops has after loading
import torch
try:
import ixformer
for ns in dir(torch.ops):
if 'ix' in ns.lower() or 'corex' in ns.lower():
print(f" torch.ops.{ns}")
except:
pass