# 'Parallel' Feature in Flux works with '+' but not '\*'

**URL:** <https://discourse.julialang.org/t/parallel-feature-in-flux-works-with-but-not/82264>\
**Category:** General Usage\
**Tags:** question\
**Created:** [June 5, 2022, 9:16am UTC](https://discourse.julialang.org/t/parallel-feature-in-flux-works-with-but-not/82264 "2022-06-05T09:16:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)\
**Post date:** [June 5, 2022, 9:16am UTC](https://discourse.julialang.org/t/parallel-feature-in-flux-works-with-but-not/82264/1 "2022-06-05T09:16:21Z")

</div>

The ‘Parallel’ feature for defining network architectures in Flux is very handy and includes the ‘vcat’ and ‘+’ operations. I tried the ‘\*’ (multiplication) operator but it didn’t work for me. Or is there a way to get it to work?

Thanks for any help

---

<div class="post-metadata">

**Author:** ![skleinbo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skleinbo/32/36080_2.png) [@skleinbo](https://discourse.julialang.org/u/skleinbo)\
**Post date:** [June 5, 2022, 9:25am UTC](https://discourse.julialang.org/t/parallel-feature-in-flux-works-with-but-not/82264/2 "2022-06-05T09:25:28Z")

</div>

While `+` is defined between vectors in Julia Base, multiplication is not because of ambiguity.  
Use `.*` instead for elementwise multiplication.

---

<div class="post-metadata">

**Author:** ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)\
**Post date:** [June 5, 2022, 9:42am UTC](https://discourse.julialang.org/t/parallel-feature-in-flux-works-with-but-not/82264/3 "2022-06-05T09:42:52Z")

</div>

Ah, that makes sense. Thanks so much - I’ll try it (and confirm that it works on here)  
Yup! Works! 😊 Thanks again!

---

<div class="post-metadata">

**Author:** ![skleinbo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skleinbo/32/36080_2.png) [@skleinbo](https://discourse.julialang.org/u/skleinbo)\
**Post date:** [June 5, 2022, 10:38am UTC](https://discourse.julialang.org/t/parallel-feature-in-flux-works-with-but-not/82264/4 "2022-06-05T10:38:39Z")

</div>

Great! Then please mark my answer as “Solution” to indicate to others that this topic has been resolved.
