You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by ns...@apache.org on 2019/04/05 20:11:21 UTC
[incubator-mxnet] branch fit-api updated: move estimator to contrib
(#14633)
This is an automated email from the ASF dual-hosted git repository.
nswamy pushed a commit to branch fit-api
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/fit-api by this push:
new ffad48a move estimator to contrib (#14633)
ffad48a is described below
commit ffad48a7b157ef70d4e35955d0b2f5e2f63287a7
Author: Lai Wei <ro...@gmail.com>
AuthorDate: Fri Apr 5 13:10:58 2019 -0700
move estimator to contrib (#14633)
---
python/mxnet/{gluon => contrib}/estimator/__init__.py | 0
python/mxnet/{gluon => contrib}/estimator/estimator.py | 0
python/mxnet/{gluon => contrib}/estimator/event_handler.py | 0
tests/nightly/estimator/test_estimator_cnn.py | 2 +-
tests/nightly/estimator/test_sentiment_rnn.py | 2 +-
tests/python/unittest/test_gluon_estimator.py | 2 +-
tests/python/unittest/test_gluon_event_handler.py | 2 +-
7 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/python/mxnet/gluon/estimator/__init__.py b/python/mxnet/contrib/estimator/__init__.py
similarity index 100%
rename from python/mxnet/gluon/estimator/__init__.py
rename to python/mxnet/contrib/estimator/__init__.py
diff --git a/python/mxnet/gluon/estimator/estimator.py b/python/mxnet/contrib/estimator/estimator.py
similarity index 100%
rename from python/mxnet/gluon/estimator/estimator.py
rename to python/mxnet/contrib/estimator/estimator.py
diff --git a/python/mxnet/gluon/estimator/event_handler.py b/python/mxnet/contrib/estimator/event_handler.py
similarity index 100%
rename from python/mxnet/gluon/estimator/event_handler.py
rename to python/mxnet/contrib/estimator/event_handler.py
diff --git a/tests/nightly/estimator/test_estimator_cnn.py b/tests/nightly/estimator/test_estimator_cnn.py
index b4311b3..92d7889 100644
--- a/tests/nightly/estimator/test_estimator_cnn.py
+++ b/tests/nightly/estimator/test_estimator_cnn.py
@@ -22,7 +22,7 @@ import numpy as np
import mxnet as mx
from mxnet import gluon, init, nd
from mxnet.gluon import data
-from mxnet.gluon.estimator import estimator
+from mxnet.contrib.estimator import estimator
from mxnet.gluon.model_zoo import vision
def load_data_mnist(batch_size, resize=None, num_workers=4):
diff --git a/tests/nightly/estimator/test_sentiment_rnn.py b/tests/nightly/estimator/test_sentiment_rnn.py
index c9dcbd2..89b6778 100644
--- a/tests/nightly/estimator/test_sentiment_rnn.py
+++ b/tests/nightly/estimator/test_sentiment_rnn.py
@@ -29,7 +29,7 @@ import mxnet as mx
from mxnet import nd, gluon
from mxnet.contrib import text
from mxnet.gluon import nn, rnn
-from mxnet.gluon.estimator import estimator
+from mxnet.contrib.estimator import estimator
class TextCNN(nn.Block):
diff --git a/tests/python/unittest/test_gluon_estimator.py b/tests/python/unittest/test_gluon_estimator.py
index c86f4ff..fd6693d 100644
--- a/tests/python/unittest/test_gluon_estimator.py
+++ b/tests/python/unittest/test_gluon_estimator.py
@@ -24,7 +24,7 @@ import warnings
import mxnet as mx
from mxnet import gluon
from mxnet.gluon import nn
-from mxnet.gluon.estimator import Estimator, EventHandler
+from mxnet.contrib.estimator import Estimator, EventHandler
from nose.tools import assert_raises
diff --git a/tests/python/unittest/test_gluon_event_handler.py b/tests/python/unittest/test_gluon_event_handler.py
index 023b046..f3181f5 100644
--- a/tests/python/unittest/test_gluon_event_handler.py
+++ b/tests/python/unittest/test_gluon_event_handler.py
@@ -20,7 +20,7 @@ import tempfile
import mxnet as mx
from mxnet import nd
from mxnet.gluon import nn, loss
-from mxnet.gluon.estimator import estimator, event_handler
+from mxnet.contrib.estimator import estimator, event_handler
def _get_test_network():
net = nn.Sequential()