Skip to content

Commit

Permalink
Remove Cassette from Reactant extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio Sánchez Ramírez committed Jul 16, 2024
1 parent 55d9b49 commit 6bed39a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions ext/MuscleReactantExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ using Muscle
using Reactant
const MLIR = Reactant.MLIR
const stablehlo = MLIR.Dialects.stablehlo
const Cassette = Reactant.Cassette

function Muscle.einsum(ic, @nospecialize(a::Reactant.TracedRArray{Ta,Sa,Na}), ia, @nospecialize(b::Reactant.TracedRArray{Tb,Sb,Nb}), ib) where {Ta,Sa,Na,Tb,Sb,Nb}
T = promote_type(Ta, Tb)
Expand Down Expand Up @@ -33,6 +32,4 @@ function Muscle.einsum(ic, @nospecialize(a::Reactant.TracedRArray{T,S,N}), ia) w
return Reactant.TracedRArray{T,rsize,length(ic)}((), result)
end

Cassette.overdub(ctx::Reactant.TraceCtx, f::typeof(Muscle.einsum), args...; kwargs...) = f(args...; kwargs...)

end

0 comments on commit 6bed39a

Please sign in to comment.