shouldn't do this

This commit is contained in:
Mike J Innes 2017-08-18 00:48:49 +01:00
parent 4ed0929ac1
commit bfe1f8eeee
2 changed files with 0 additions and 19 deletions

View File

@ -23,7 +23,6 @@ include("core.jl")
import .FluxCore: back!, update!, graph
include("utils.jl")
include("ops.jl")
include("params.jl")
include("compiler/code.jl")

View File

@ -1,18 +0,0 @@
export reshape, tile, fill, cast, solve, triangular_solve, randu, randn,
expand_dims
import Base: reshape, fill, randn
reshape(x::AbstractArray, dims::AbstractArray) = reshape(x,tuple(dims...))
tile(x::AbstractArray, mult::AbstractArray) = repeat(x,outer=tuple(mult...))
fill{T}(x::T, dims::AbstractArray) = fill(x,tuple(dims...))
cast{T}(x::AbstractArray, ::Type{T}) = convert(Array{T},x)
solve(A::AbstractArray, b::AbstractArray) = A\b
triangular_solve(A::AbstractArray, b::AbstractArray) = A\b
randu(x::AbstractArray) = rand(tuple(x...))
randn(x::AbstractArray) = randn(tuple(x...))
function expand_dims(x,dim)
s = [size(x)...]
reshape(x,tuple(vcat(s[1:dim-1],1,s[dim:end])...))
end