Skip to content

Commit

Permalink
Make unary "-" work with @tf
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Thill committed Nov 11, 2018
1 parent c5aa7a8 commit a7680b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ops/math.jl
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ function Base.round(::Type{T}, value::AbstractTensor) where T
end


-(n::AbstractTensor) = negative(n)
-(n::AbstractTensor; kwargs...) = negative(n; kwargs...)

@op function Base.complex(x_r::AbstractTensor, x_i::AbstractTensor; kwargs...)
Ops.complex(x_r, x_i; kwargs...)
Expand Down

0 comments on commit a7680b0

Please sign in to comment.