Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Julia v0.7/1.0 support and drop v0.6 support #12845

Merged
merged 111 commits into from
Jan 14, 2019
Merged
Changes from 1 commit
Commits
Show all changes
111 commits
Select commit Hold shift + click to select a range
b9a9e76
start working on updating to Julia v0.7/1.0
iblislin Oct 17, 2018
2dc36cf
ci: bump Julia version to 0.7
iblislin Oct 17, 2018
2ec8c38
using Printf
iblislin Oct 17, 2018
8f7a5ae
fix docstring depwarns
iblislin Oct 17, 2018
aee6ddb
base.jl: fix LIB_VERSION
iblislin Oct 17, 2018
f0a4d23
fix depwarns in base.jl
iblislin Oct 17, 2018
95bbef6
style suffs for context.jl
iblislin Oct 26, 2018
89535cf
context.jl: fix convert deprecation
iblislin Oct 27, 2018
03e8202
base.jl: QuoteNode and flipdim
iblislin Oct 27, 2018
9ec1fc4
ndarray: fix Base.show
iblislin Oct 27, 2018
a273617
ndarray: fix flipdim
iblislin Oct 27, 2018
b5abfcb
ndarray: fix Base.eltype
iblislin Oct 27, 2018
f14d31d
ndarray: Void -> Cvoid
iblislin Oct 27, 2018
156b9e9
ndarray: Base.size
iblislin Oct 27, 2018
059026f
Void -> Cvoid
iblislin Nov 11, 2018
4684957
start working on broadcasting
iblislin Nov 11, 2018
2c61a39
broadcasted add
iblislin Nov 11, 2018
367f0ee
broadcasted minus
iblislin Nov 11, 2018
2533903
broadcasted multiplication
iblislin Nov 11, 2018
05f552c
broadcasted div
iblislin Nov 11, 2018
ea45365
broadcasted mod
iblislin Nov 11, 2018
bef3d5b
broadcasted power
iblislin Nov 11, 2018
00cba83
broadcasted comparison, min, max, hypot
iblislin Nov 11, 2018
afa4ebe
utils: fix replace
iblislin Nov 12, 2018
2e046cb
broadcast: trigonometric and hyperbolic function
iblislin Nov 14, 2018
e382940
broadcast: activation functions
iblislin Nov 14, 2018
b1d0046
fix _remap import
iblislin Nov 14, 2018
fa8b4d3
fix import depwarns
iblislin Nov 15, 2018
197c7d9
ndarray: fix docstring depwarn
iblislin Nov 23, 2018
8915579
base: fix dump_mx_param
iblislin Nov 23, 2018
c0b0693
random: srand -> seed!
iblislin Nov 23, 2018
531f100
import
iblislin Nov 30, 2018
88d11a9
include broadcast.jl
iblislin Nov 30, 2018
7a6760a
fix depwarn in autograd
iblislin Nov 30, 2018
6e9ee5b
util: _import_map
iblislin Dec 10, 2018
6d32d53
fix broadcasting for SymbolicNode
iblislin Dec 10, 2018
b8b7caf
fix MX_handle fallback constructors
iblislin Dec 10, 2018
5e71fe4
fix test/runtests.jl
iblislin Dec 12, 2018
d5deb38
ndarray: fix lastindex
iblislin Dec 12, 2018
3a31646
ndarray: fix matrix multiplication
iblislin Dec 12, 2018
ef8b91a
ndarray: fix Array initialization
iblislin Dec 12, 2018
5ec2771
ndarray: fix rdiv
iblislin Dec 12, 2018
553c8b0
ndarray: rmod_scalar
iblislin Dec 12, 2018
1526ab1
ndarray: power
iblislin Dec 12, 2018
f333748
ndarray: power
iblislin Dec 12, 2018
8020000
deprecate sum(::NDArray, dims)
iblislin Dec 15, 2018
dbdc0af
deprecate maximum(::NDArray, dims)
iblislin Dec 16, 2018
9f196b3
deprecate minimum(::NDArray, dims)
iblislin Dec 21, 2018
1a11300
ndarray: fix MX_handle fallback constructor
iblislin Dec 21, 2018
1adb79d
fix depwarns
iblislin Dec 21, 2018
766c295
fix Base.size
iblislin Dec 22, 2018
257b67d
ndarray: fix nd_as_jl macro
iblislin Dec 22, 2018
1dd7ae7
ndarray: fix test cases
iblislin Dec 22, 2018
57dd637
ndarray: deprecate mean(::NDArray, dims)
iblislin Dec 22, 2018
d761ffa
ndarray: fix test cases depwarns
iblislin Dec 23, 2018
d92b948
ndarray: deprecate Base.prod(::NDArray, dims)
iblislin Dec 23, 2018
d4c1981
ndarray: fix sum depwarns in test cases
iblislin Dec 23, 2018
b7f823d
ndarray: deprecate Base.cat(dims, As...)
iblislin Dec 23, 2018
f67d0ae
ndarray: fix size depwarn in test cases
iblislin Dec 23, 2018
1951fa7
symbol: fix info macro in test cases
iblislin Dec 23, 2018
a8bf5b2
SymbolicNode: replace Nullable with Missing for get_attr
iblislin Dec 26, 2018
22ac8bd
symbol: fix literal_pow broadcast
iblislin Dec 29, 2018
3055092
symbol: flipdim -> reverse
iblislin Dec 29, 2018
b2cd54c
symbol: fix findall
iblislin Dec 29, 2018
89a4b41
executor: fix Cvoid depwarns
iblislin Dec 29, 2018
e77a154
symbolic: fix test cases
iblislin Dec 29, 2018
aaed2d6
bind: fix test cases depwarns
iblislin Dec 29, 2018
2e895b1
test/operator: fix depwarns
iblislin Dec 29, 2018
5f5801d
test/random: fix depwarns
iblislin Dec 29, 2018
f3c6477
test/metric: fix depwarns
iblislin Dec 30, 2018
5f2f0be
metric: style stuffs
iblislin Dec 30, 2018
0d72389
optimizer: fix Void depwarn
iblislin Dec 30, 2018
1ab3ef1
optimizer: fix doc depwarns
iblislin Dec 30, 2018
30db122
io: fix iteration protocol
iblislin Dec 30, 2018
5fa5a59
test/io: fix depwarns
iblislin Dec 30, 2018
355e248
base: refine _get_lib_version!
iblislin Dec 31, 2018
11e47ca
utils: fix depwarns
iblislin Dec 31, 2018
a48212e
base: fix Vector init depwarns
iblislin Dec 31, 2018
ccf003d
test/optimizer: fix depwarns
iblislin Dec 31, 2018
a9b4e49
kvstore: fix depwarns
iblislin Dec 31, 2018
380cc19
update nn-factory
iblislin Dec 31, 2018
001cde0
symbol: fix flipdim depwarns
iblislin Dec 31, 2018
739fe2a
fix info macro in tests
iblislin Dec 31, 2018
4c70ed4
ndarray: fix broadcast on rminus
iblislin Dec 31, 2018
b5cb129
model: fix Cvoid depwarn
iblislin Dec 31, 2018
0d794a0
test/util: fix depwarns
iblislin Dec 31, 2018
bf1ed69
visualize: fix depwarns
iblislin Dec 31, 2018
2ba647b
runtests: fix depwarns
iblislin Dec 31, 2018
d3f0712
ndarray: fix import warning
iblislin Dec 31, 2018
e0b60df
deprecated.jl: fix warn macro
iblislin Dec 31, 2018
519cab3
fix info macro
iblislin Dec 31, 2018
cc9b9e2
fix occursin depwarn
iblislin Dec 31, 2018
d185c8b
model: fix array broadcast
iblislin Dec 31, 2018
c3db25c
use __DIR__ instead of dirname(macro __FILE__)
iblislin Dec 31, 2018
55a3476
fix readstring deprecation
iblislin Dec 31, 2018
d6c7a51
fix `cat` depwarns
iblislin Dec 31, 2018
1820e0c
indmax -> argmax
iblislin Dec 31, 2018
eb9eff8
model: fix depwarn
iblislin Jan 1, 2019
75fe050
examples/char-lstm: fix depwarns
iblislin Jan 1, 2019
5e3ad17
Jenkins: add julia 1.0.3 build
iblislin Jan 1, 2019
44effe7
Julia Pkg3 new installation process
iblislin Jan 1, 2019
65edba9
ci: fix versioninfo
iblislin Jan 1, 2019
74b0793
ci: fix julia package dir
iblislin Jan 1, 2019
123230d
base: remove isnull
iblislin Jan 1, 2019
83d88ca
ci: fix julia doc build
iblislin Jan 1, 2019
a2eb2c2
fix warn macro
iblislin Jan 1, 2019
b902759
fix depwarns in build.jl
iblislin Jan 10, 2019
7917414
fix workspace name
iblislin Jan 11, 2019
68349cf
Update ci/docker/runtime_functions.sh
iblislin Jan 11, 2019
b134eea
fix docs build
iblislin Jan 11, 2019
fb2cc4a
fix docs build
iblislin Jan 11, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
broadcasted minus
  • Loading branch information
iblislin committed Jan 1, 2019
commit 367f0ee954007e955cd4bb5e6957666f8fbfdee6
8 changes: 2 additions & 6 deletions julia/src/ndarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -653,16 +653,12 @@ import Base: -
Subtraction `x - y`, of scalar types or `NDArray`.
Or create the negative of `x`.
"""
-(x::NDArray) = _mul_scalar(x, scalar = -one(eltype(x)))
-(x::NDArray) = _mul_scalar(x, scalar = -one(eltype(x)))
-(x::NDArray, y::NDArray) = _minus(x, y)
-(x::NDArray, y::Real) = _minus_scalar(x, scalar = y)
-(y::Real, x::NDArray) = _rminus_scalar(x, scalar = y)

broadcast_(::typeof(-), x::NDArray, y::Real) = x - y
broadcast_(::typeof(-), x::Real, y::NDArray) = x - y

broadcast_(::typeof(-), x::NDArray{T,N}, y::NDArray{T,N}) where {T,N} = x - y
broadcast_(::typeof(-), x::NDArray{T,N}, y::NDArray{T,M}) where {T,N,M} =
broadcasted(::typeof(-), x::NDArray{T,N}, y::NDArray{T,M}) where {T,N,M} =
_broadcast_minus(x, y)

"""
Expand Down