Skip to content

Commit 05922ad

Browse files
author
Olivier Thill
committed
To much syntactic sugar it seems.
1 parent a7680b0 commit 05922ad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ops/math.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,9 @@ function Base.round(::Type{T}, value::AbstractTensor) where T
167167
end
168168

169169

170-
-(n::AbstractTensor; kwargs...) = negative(n; kwargs...)
170+
function -(n::AbstractTensor; kwargs...)
171+
negative(n; kwargs...)
172+
end
171173

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

0 commit comments

Comments
 (0)