debug: list ixformer.functions available APIs
This commit is contained in:
21
ex_engine/list_ixformer_funcs.py
Normal file
21
ex_engine/list_ixformer_funcs.py
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/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
|
||||||
Reference in New Issue
Block a user