File tree 3 files changed +2
-7
lines changed
3 files changed +2
-7
lines changed Original file line number Diff line number Diff line change 24
24
from tensorflow_addons .seq2seq import attention_wrapper
25
25
from tensorflow_addons .seq2seq import basic_decoder
26
26
from tensorflow_addons .seq2seq import sampler as sampler_py
27
- from tensorflow_addons .utils import test_utils
28
27
29
28
30
- @test_utils .keras_parameterized .run_all_keras_modes
31
- class BasicDecoderTest (test_utils .keras_parameterized .TestCase ):
29
+ class BasicDecoderTest (tf .test .TestCase , parameterized .TestCase ):
32
30
"""Unit test for basic_decoder.BasicDecoder."""
33
31
34
32
@parameterized .named_parameters (
Original file line number Diff line number Diff line change 20
20
import numpy as np
21
21
import tensorflow as tf
22
22
23
- from tensorflow_addons .utils import test_utils
24
23
from tensorflow_addons .seq2seq import basic_decoder
25
24
from tensorflow_addons .seq2seq import sampler as sampler_py
26
25
27
26
28
- @test_utils .keras_parameterized .run_all_keras_modes
29
- class DecodeRNNTest (test_utils .keras_parameterized .TestCase , tf .test .TestCase ):
27
+ class DecodeRNNTest (tf .test .TestCase ):
30
28
"""Tests for Decoder."""
31
29
32
30
def _testDecodeRNN (self , time_major , maximum_iterations = None ):
Original file line number Diff line number Diff line change 30
30
run_in_graph_and_eager_modes ,
31
31
)
32
32
from tensorflow .python .keras .testing_utils import layer_test # noqa: F401
33
- from tensorflow .python .keras import keras_parameterized # noqa: F401
34
33
35
34
36
35
@contextlib .contextmanager
You can’t perform that action at this time.
0 commit comments