Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
willow-ahrens committed Nov 27, 2024
1 parent d06b4b1 commit 3d59180
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions docs/src/docs/array_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,14 +151,14 @@ be useful to distinguish between different uses of the same function using the
`tag` keyword argument to `compute` or `fuse`. For example, we may wish to
distinguish one spmv from another, as follows:

```jldoctest example2
```jldoctest example2; setup=:(using Finch)
julia> A = rand(1000, 1000); B = rand(1000, 1000); C = fsprand(1000, 1000, 0.0001);
julia> fused((A, B, C) -> C .* (A * B), tag=:very_sparse_sddmm);
julia> fused((A, B, C) -> C .* (A * B), A, B, C, tag=:very_sparse_sddmm);
julia> C = fsprand(1000, 1000, 0.9);
julia> fused((A, B, C) -> C .* (A * B), tag=:very_dense_sddmm);
julia> fused((A, B, C) -> C .* (A * B), A, B, C, tag=:very_dense_sddmm);
```

Expand Down
2 changes: 1 addition & 1 deletion src/Finch.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export diagmask, lotrimask, uptrimask, bandmask, chunkmask
export scale, products, offset, permissive, protocolize, swizzle, toeplitz, window
export PlusOneVector

export lazy, compute, tensordot, @einsum
export lazy, compute, fused, tensordot, @einsum

export choose, minby, maxby, overwrite, initwrite, filterop, d

Expand Down
2 changes: 1 addition & 1 deletion src/interface/lazy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ program:
- `tag=:global`: A tag to distinguish between different classes of inputs for the same program.
"""
function fused(f, args...; kwargs...)
compute(f(map(LazyTensor, args...)), kwargs...)
compute(f(map(LazyTensor, args)...); kwargs...)
end

current_scheduler = Ref{Any}(default_scheduler())
Expand Down

0 comments on commit 3d59180

Please sign in to comment.