Files
incubator-mxnet/python/mxnet/ndarray/__init__.py
T
David Braude a352d1e2b3 added function for loading content of nd_array files from a buffer (#9883)
* added function for loading content of nd_array files

* changed function name and added check for NULL

* removed no lint

* fixed whitespace

* corrected the casting

* added python wrapper for buffer loading

* added unit tests for loading from buffer

* whitespace fixes

* fix for python 3

* fixed test for py3

* python 3 problems

* fixed test

* switched to using temp files

* better use of temp files

* hopefully fixed permission issue

* removed specified directory

* hopefully this will work with windows

* fixed indentation

* check in to relaunch tests

Python 3 windows failed for no obvious reason, deleted some whitespace to relaunch

* switched to using temporary directory class

* removed unneeded imports

* moved imports to 1 location
2018-02-26 11:48:11 -08:00

36 lines
1.4 KiB
Python

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
"""NDArray API of MXNet."""
from . import _internal, contrib, linalg, op, random, sparse, utils, image
# pylint: disable=wildcard-import, redefined-builtin
try:
from .gen_op import * # pylint: disable=unused-wildcard-import
except ImportError:
pass
from . import register
from .op import *
from .ndarray import *
# pylint: enable=wildcard-import
from .utils import load, load_frombuffer, save, zeros, empty, array
from .sparse import _ndarray_cls
from .ndarray import _GRAD_REQ_MAP
__all__ = op.__all__ + ndarray.__all__ + utils.__all__ + \
['contrib', 'linalg', 'random', 'sparse', 'image']