Skip to content

Commit 59e9ec9

Browse files
author
Olivier Thill
committed
Make unary "-" work with @tf
1 parent c5aa7a8 commit 59e9ec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ops/math.jl

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

169169

170-
-(n::AbstractTensor) = negative(n)
170+
-(n::TF.AbstractTensor; kwargs...) = negative(n; kwargs...)
171171

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

0 commit comments

Comments
 (0)