Skip to content

Commit

Permalink
ndarray: do not auto-import _full, _ones and _zeros (#359)
Browse files Browse the repository at this point in the history
  • Loading branch information
iblislin committed Dec 8, 2017
1 parent f8d4f62 commit 14f9748
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ndarray.jl
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ end
Create an `NDArray` filled with the value `x`, like `Base.fill`.
"""
function fill(x, dims::NTuple{N, Integer}, ctx::Context=cpu()) where N
function fill(x, dims::NTuple{N,Integer}, ctx::Context=cpu()) where N
arr = empty(typeof(x), dims, ctx)
arr[:] = x
arr
Expand Down Expand Up @@ -1224,6 +1224,9 @@ function _get_ndarray_function_def(name :: String)
end

const _op_import_bl = [ # import black list; do not import these funcs
"_full", # we already have `mx.fill`
"_ones", # we already have `mx.ones`
"_zeros", # we already have `mx.zeros`
"mean",
"reshape",
"sum",
Expand Down

0 comments on commit 14f9748

Please sign in to comment.