Skip to content

Commit

Permalink
Stop testing for deeprec
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Zhao <[email protected]>
  • Loading branch information
SimonYansenZhao committed Jan 30, 2024
1 parent 1b8d287 commit a32cd90
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 45 deletions.
5 changes: 1 addition & 4 deletions recommenders/models/deeprec/models/sequential/sum_cells.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@

import numpy as np
import tensorflow as tf
try:
from keras.layers.legacy_rnn.rnn_cell_impl import LayerRNNCell
except:
from keras.layers.rnn import AbstractRNNCell as LayerRNNCell
from keras.layers.legacy_rnn.rnn_cell_impl import LayerRNNCell
from tensorflow.python.eager import context
from tensorflow.python.keras import activations
from tensorflow.python.keras import initializers
Expand Down
34 changes: 17 additions & 17 deletions tests/ci/azureml_tests/test_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,26 +66,26 @@
"group_gpu_001": [ # Total group time: 1937.01s
"tests/unit/examples/test_notebooks_gpu.py::test_gpu_vm", # 0.76s (Always the first test to check the GPU works)
"tests/smoke/recommenders/recommender/test_deeprec_utils.py", # 2.91
"tests/smoke/recommenders/recommender/test_deeprec_model.py::test_FFM_iterator", # 0.74s
# "tests/smoke/recommenders/recommender/test_deeprec_model.py::test_FFM_iterator", # 0.74s # FIXME: Disabled due to the issue with TF version > 2.10.1 See #2018
"tests/smoke/recommenders/recommender/test_newsrec_utils.py::test_news_iterator", # 3.04s
#
"tests/smoke/recommenders/recommender/test_deeprec_model.py::test_model_lightgcn", # 6.03s # FIXME: Issue with TF version > 2.10.1 See #2018
"tests/functional/examples/test_notebooks_gpu.py::test_lightgcn_deep_dive_functional", # 19.45s # FIXME: Issue with TF version > 2.10.1 See #2018
# "tests/smoke/recommenders/recommender/test_deeprec_model.py::test_model_lightgcn", # 6.03s # FIXME: Disabled due to the issue with TF version > 2.10.1 See #2018
# "tests/functional/examples/test_notebooks_gpu.py::test_lightgcn_deep_dive_functional", # 19.45s # FIXME: Disabled due to the issue with TF version > 2.10.1 See #2018
#
"tests/smoke/recommenders/recommender/test_deeprec_model.py::test_model_sum", # 27.23s # FIXME: Issue with TF version > 2.10.1 See #2018
# "tests/smoke/recommenders/recommender/test_deeprec_model.py::test_model_sum", # 27.23s # FIXME: Disabled due to the issue with TF version > 2.10.1 See #2018
#
"tests/smoke/recommenders/recommender/test_deeprec_model.py::test_model_dkn", # 187.20s
# "tests/smoke/recommenders/recommender/test_deeprec_model.py::test_model_dkn", # 187.20s # FIXME: Disabled due to the issue with TF version > 2.10.1 See #2018
"tests/functional/examples/test_notebooks_gpu.py::test_dkn_quickstart_functional", # 1167.93s
#
"tests/functional/examples/test_notebooks_gpu.py::test_slirec_quickstart_functional", # 175.00s # FIXME: Issue with TF version > 2.10.1 See #2018
"tests/smoke/recommenders/recommender/test_deeprec_model.py::test_model_slirec", # 346.72s # FIXME: Issue with TF version > 2.10.1 See #2018
# "tests/functional/examples/test_notebooks_gpu.py::test_slirec_quickstart_functional", # 175.00s # FIXME: Disabled due to the issue with TF version > 2.10.1 See #2018
# "tests/smoke/recommenders/recommender/test_deeprec_model.py::test_model_slirec", # 346.72s # FIXME: Disabled due to the issue with TF version > 2.10.1 See #2018
],
"group_gpu_002": [ # Total group time: 1896.76s
"tests/unit/examples/test_notebooks_gpu.py::test_gpu_vm", # 0.76s (Always the first test to check the GPU works)
"tests/smoke/recommenders/recommender/test_deeprec_model.py::test_model_xdeepfm", # 3.10s
# "tests/smoke/recommenders/recommender/test_deeprec_model.py::test_model_xdeepfm", # 3.10s # FIXME: Disabled due to the issue with TF version > 2.10.1 See #2018
# FIXME: https://github.com/microsoft/recommenders/issues/1883
# "tests/smoke/examples/test_notebooks_gpu.py::test_xdeepfm_smoke", # 77.93s
"tests/functional/examples/test_notebooks_gpu.py::test_xdeepfm_functional", # FIXME: Issue with TF version > 2.10.1 See #2018
# "tests/functional/examples/test_notebooks_gpu.py::test_xdeepfm_functional", # FIXME: Disabled due to the issue with TF version > 2.10.1 See #2018
#
"tests/smoke/examples/test_notebooks_gpu.py::test_cornac_bivae_smoke", # 67.84s
"tests/functional/examples/test_notebooks_gpu.py::test_cornac_bivae_functional", # 453.21s
Expand Down Expand Up @@ -426,13 +426,13 @@
],
"group_gpu_002": [ # Total group time:
"tests/unit/examples/test_notebooks_gpu.py::test_gpu_vm", # 0.76s (Always the first test to check the GPU works)
"tests/unit/recommenders/models/test_deeprec_model.py::test_xdeepfm_component_definition", # FIXME: Issue with TF version > 2.10.1 See #2018
"tests/unit/recommenders/models/test_deeprec_model.py::test_dkn_component_definition",
"tests/unit/recommenders/models/test_deeprec_model.py::test_dkn_item2item_component_definition",
"tests/unit/recommenders/models/test_deeprec_model.py::test_slirec_component_definition", # FIXME: Issue with TF version > 2.10.1 See #2018
"tests/unit/recommenders/models/test_deeprec_model.py::test_nextitnet_component_definition",
"tests/unit/recommenders/models/test_deeprec_model.py::test_sum_component_definition", # FIXME: Issue with TF version > 2.10.1 See #2018
"tests/unit/recommenders/models/test_deeprec_model.py::test_lightgcn_component_definition",
# "tests/unit/recommenders/models/test_deeprec_model.py::test_xdeepfm_component_definition", # FIXME: Disabled due to the issue with TF version > 2.10.1 See #2018
# "tests/unit/recommenders/models/test_deeprec_model.py::test_dkn_component_definition", # FIXME: Disabled due to the issue with TF version > 2.10.1 See #2018
# "tests/unit/recommenders/models/test_deeprec_model.py::test_dkn_item2item_component_definition", # FIXME: Disabled due to the issue with TF version > 2.10.1 See #2018
# "tests/unit/recommenders/models/test_deeprec_model.py::test_slirec_component_definition", # FIXME: Disabled due to the issue with TF version > 2.10.1 See #2018
# "tests/unit/recommenders/models/test_deeprec_model.py::test_nextitnet_component_definition", # FIXME: Disabled due to the issue with TF version > 2.10.1 See #2018
# "tests/unit/recommenders/models/test_deeprec_model.py::test_sum_component_definition", # FIXME: Disabled due to the issue with TF version > 2.10.1 See #2018
# "tests/unit/recommenders/models/test_deeprec_model.py::test_lightgcn_component_definition", # FIXME: Disabled due to the issue with TF version > 2.10.1 See #2018
"tests/unit/recommenders/models/test_deeprec_utils.py::test_prepare_hparams",
"tests/unit/recommenders/models/test_deeprec_utils.py::test_load_yaml_file",
"tests/security/test_dependency_security.py::test_tensorflow",
Expand All @@ -449,7 +449,7 @@
"group_notebooks_gpu_002": [ # Total group time: 241.15s
"tests/unit/examples/test_notebooks_gpu.py::test_gpu_vm", # 0.76s (Always the first test to check the GPU works)
"tests/unit/examples/test_notebooks_gpu.py::test_wide_deep",
"tests/unit/examples/test_notebooks_gpu.py::test_xdeepfm", # FIXME: Issue with TF version > 2.10.1 See #2018
# "tests/unit/examples/test_notebooks_gpu.py::test_xdeepfm", # FIXME: Disabled due to the issue with TF version > 2.10.1 See #2018
"tests/unit/examples/test_notebooks_gpu.py::test_gpu_vm",
],
}
48 changes: 24 additions & 24 deletions tests/unit/recommenders/models/test_deeprec_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,30 +12,30 @@
)
from recommenders.datasets.python_splitters import python_stratified_split

# try:
from recommenders.models.deeprec.DataModel.ImplicitCF import ImplicitCF
from recommenders.models.deeprec.deeprec_utils import (
prepare_hparams,
download_deeprec_resources,
)
from recommenders.models.deeprec.io.iterator import FFMTextIterator
from recommenders.models.deeprec.io.dkn_item2item_iterator import (
DKNItem2itemTextIterator,
)
from recommenders.models.deeprec.io.dkn_iterator import DKNTextIterator
from recommenders.models.deeprec.io.nextitnet_iterator import NextItNetIterator
from recommenders.models.deeprec.io.sequential_iterator import SequentialIterator
from recommenders.models.deeprec.models.dkn import DKN
from recommenders.models.deeprec.models.dkn_item2item import DKNItem2Item
from recommenders.models.deeprec.models.graphrec.lightgcn import LightGCN
from recommenders.models.deeprec.models.sequential.nextitnet import (
NextItNetModel,
)
from recommenders.models.deeprec.models.sequential.sli_rec import SLI_RECModel
from recommenders.models.deeprec.models.sequential.sum import SUMModel
from recommenders.models.deeprec.models.xDeepFM import XDeepFMModel
# except ImportError:
# pass # skip this import if we are in cpu environment
try:
from recommenders.models.deeprec.DataModel.ImplicitCF import ImplicitCF
from recommenders.models.deeprec.deeprec_utils import (
prepare_hparams,
download_deeprec_resources,
)
from recommenders.models.deeprec.io.iterator import FFMTextIterator
from recommenders.models.deeprec.io.dkn_item2item_iterator import (
DKNItem2itemTextIterator,
)
from recommenders.models.deeprec.io.dkn_iterator import DKNTextIterator
from recommenders.models.deeprec.io.nextitnet_iterator import NextItNetIterator
from recommenders.models.deeprec.io.sequential_iterator import SequentialIterator
from recommenders.models.deeprec.models.dkn import DKN
from recommenders.models.deeprec.models.dkn_item2item import DKNItem2Item
from recommenders.models.deeprec.models.graphrec.lightgcn import LightGCN
from recommenders.models.deeprec.models.sequential.nextitnet import (
NextItNetModel,
)
from recommenders.models.deeprec.models.sequential.sli_rec import SLI_RECModel
from recommenders.models.deeprec.models.sequential.sum import SUMModel
from recommenders.models.deeprec.models.xDeepFM import XDeepFMModel
except ImportError:
pass # skip this import if we are in cpu environment


@pytest.mark.gpu
Expand Down

0 comments on commit a32cd90

Please sign in to comment.