"""Deterministic actual architecture 3-feature timing + swap checks."""
import os
os.environ.setdefault('CUBLAS_WORKSPACE_CONFIG',':4096:8')
import torch
torch.use_deterministic_algorithms(True)
torch.backends.cudnn.benchmark=False
torch.backends.cudnn.deterministic=True
from bmms_3feature_model import BMMS3Enhanced
path=os.path.join(os.path.dirname(__file__),'bmms_env_checks.py')
src=open(path).read()
a='from bmms_env_model import BMMSEnv';b="targets=['env']";c='size=(n,2,1)'
assert src.count(a)==src.count(b)==src.count(c)==1
src=src.replace(a,'from bmms_3feature_model import BMMS3Enhanced as BMMSEnv').replace(b,"targets=['env','onset','dom']").replace(c,'size=(n,2,3)')
exec(compile(src,path,'exec'),{'__name__':'__main__','__file__':path})
