-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
The predictions of two SCs which should have nothing to do with each other seem to be overwriting each other? This seems like a bug, but let me know if I am doing something obviously wrong?
Here is a ~MWE of some code I have been running:
using SimpleChains
sc1 = SimpleChain(
static(1),
TurboDense{true}(tanh, 128),
TurboDense{true}(tanh, 128),
TurboDense{false}(identity, 1),
)
p1 = SimpleChains.init_params(sc1);
sc2 = SimpleChain(
static(1),
TurboDense{true}(tanh, 128),
TurboDense{true}(tanh, 128),
TurboDense{false}(identity, 1),
)
p2 = SimpleChains.init_params(sc2);
@assert p1 != p2
X = randn(Float32,1,10); #some inputs
sc1(X, p1)[1,1] ≈ sc2(X, p2)[1,1] #false, not the same
y1 = sc1(X, p1)
y2 = sc2(X, p2)
y1[1,1] == y2[1,1] #true, the sameMetadata
Metadata
Assignees
Labels
No labels