# Tullio broadcasting issue

**URL:** <https://discourse.julialang.org/t/tullio-broadcasting-issue/107321>\
**Category:** New to Julia\
**Tags:** broadcasting, tullio, tensoroperations\
**Created:** [December 8, 2023, 10:02am UTC](https://discourse.julialang.org/t/tullio-broadcasting-issue/107321 "2023-12-08T10:02:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Mason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mason/32/2423_2.png) [@Mason](https://discourse.julialang.org/u/Mason)\
**Post date:** [December 8, 2023, 11:52am UTC](https://discourse.julialang.org/t/tullio-broadcasting-issue/107321/2 "2023-12-08T11:52:35Z")

</div>

Hi @swanchristmas, can you provide a minimal reproducable example? i.e. [Please read: make it easier to help you](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757)

For what it’s worth, if I try to construct such an example, I see no difference here:

```julia
julia> using Tullio, TensorOperations

julia> let 
           N, P = 2,3
           A = rand(N)
           B = rand(P)
           C = rand(N)
           @tullio out1[n, p] := A[n] * B[p] + C[n]
           @tullio out2[n, p] := A[n] * B[p] + C[n] * ones(P)[p]
           @tensor out3[n, p] := A[n] * B[p] + C[n] * ones(P)[p]
          
           @info "" out1 out2 out3
       end
┌ Info: 
│ out1 =
│ 2×3 Matrix{Float64}:
│ 0.670981 0.719456 0.856811
│ 0.577745 0.641696 0.822899
│ out2 =
│ 2×3 Matrix{Float64}:
│ 0.670981 0.719456 0.856811
│ 0.577745 0.641696 0.822899
│ out3 =
│ 2×3 Matrix{Float64}:
│ 0.670981 0.719456 0.856811
└ 0.577745 0.641696 0.822899

```

Is it possible there’s an error or typo somewhere in your code that’s causing the discrepancy you’re seeing?

---

_[View the full topic](https://discourse.julialang.org/t/tullio-broadcasting-issue/107321)._
