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

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
antinucleon committed Aug 23, 2015
1 parent 2cbe804 commit a8e73a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/mxnet/narray.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from __future__ import absolute_import

import ctypes
import sys
from .base import _LIB
from .base import c_array
from .base import mx_uint, mx_float, NArrayHandle, FunctionHandle
Expand Down Expand Up @@ -185,7 +186,6 @@ def _make_narray_function(handle):
"""Create a NArray function from the FunctionHandle."""
# Constants for type masks.
NARRAY_ARG_BEFORE_SCALAR = 1
SCALAR_ARG_BEFORE_NARRAY = 1 << 1
ACCEPT_EMPTY_MUTATE_TARGET = 1 << 2
# Get the property of NArray
n_mutate_vars = 0
Expand Down Expand Up @@ -335,6 +335,8 @@ def _init_narray_module():
size = ctypes.c_uint()
check_call(_LIB.MXListFunctions(ctypes.byref(size),
ctypes.byref(plist)))

module_obj = sys.modules[__name__]
for i in range(size.value):
hdl = FunctionHandle(plist[i])
function = _make_narray_function(hdl)
Expand Down

0 comments on commit a8e73a8

Please sign in to comment.