EngramConv.__init__ has hardcoded dilation=3, not passed from EngramModule #15
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
EngramConv.__init__(engram.py:117) hasdilation=3as a hardcoded default:But
EngramModule.__init__(engram.py:140) never passesdilation:Wait — it does pass
dilation=max(n_orders). ButEngramConv.__init__'s signature hasdilation=3as default, and the call site passes it explicitly. So this is actually fine.However, the comment in
EngramModulesaysdilation=max(n_orders)butn_orders=(2,3), so dilation=3. This matches the default. The issue is that if someone changesn_ordersto(2,), dilation becomes 2, but the default inEngramConvis still 3. The mismatch between default and actual usage is confusing.Impact
EngramConvdirectly without passing dilationAction needed
Either:
dilationparameter fromEngramConv.__init__and always compute it inEngramModule, ORdilation=3is fine if documented)Files
tergent/engram.py:117, 140