fixes
This commit is contained in:
parent
b2b2c209c6
commit
08b67d9b76
@ -14,13 +14,14 @@ end
|
|||||||
|
|
||||||
model = TLP(Affine(10, 20), Affine(21, 15))
|
model = TLP(Affine(10, 20), Affine(21, 15))
|
||||||
|
|
||||||
mxmodel = mxnet(model, (1, 20))
|
mxmodel = mxnet(model, (10, 1))
|
||||||
```
|
```
|
||||||
|
|
||||||
Unfortunately, this model has a (fairly obvious) typo, which means that the code above won't run. Instead we get an error message:
|
Unfortunately, this model has a (fairly obvious) typo, which means that the code above won't run. Instead we get an error message:
|
||||||
|
|
||||||
```julia
|
```julia
|
||||||
InferShape Error in dot5: [20:37:39] src/operator/./matrix_op-inl.h:271: Check failed: (lshape[1]) == (rshape[0]) dot shape error: (15,21) X (20,1)
|
InferShape Error in dot5: [20:37:39] src/operator/./matrix_op-inl.h:271:
|
||||||
|
Check failed: (lshape[1]) == (rshape[0]) dot shape error: (15,21) X (20,1)
|
||||||
in Flux.Affine at affine.jl:8
|
in Flux.Affine at affine.jl:8
|
||||||
in TLP at test.jl:6
|
in TLP at test.jl:6
|
||||||
in mxnet(::TLP, ::Tuple{Int64,Int64}) at model.jl:40
|
in mxnet(::TLP, ::Tuple{Int64,Int64}) at model.jl:40
|
||||||
|
Loading…
Reference in New Issue
Block a user