Skip to content

Commit

Permalink
* CI fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
srkreddy1238 committed Mar 6, 2021
1 parent 8ba2290 commit 5096688
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
24 changes: 10 additions & 14 deletions tests/python/frontend/tensorflow/test_forward_v2_x.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ def test_forward_biasadd():
_test_biasadd([4, 3, 3, 124], "NHWC")


'''
"""
def _test_forward_where(input_shape):
with tf.Graph().as_default():
dtype = tf.float32
Expand All @@ -780,7 +780,7 @@ def test_forward_argwhere():
_test_forward_where((5, 5, 5))
_test_forward_where((5, 5, 5, 5))
_test_forward_where((5, 5, 5, 5, 5))
'''
"""


#######################################################################
Expand Down Expand Up @@ -990,7 +990,7 @@ def test_forward_squeeze():
_test_squeeze(np.arange(6).reshape((1, 2, 1, 3, 1)), [-3, -5, -1])


'''
"""
# TODO: The following operators are not implemented: {'TensorListGetItem', 'TensorListSetItem', 'TensorListReserve'}
def test_tensor_array_constructor():
def run(dtype_str):
Expand Down Expand Up @@ -1154,7 +1154,7 @@ def array_func():
run(dtype, (5, 5, 5, 5))
run(dtype, (5, 5, 5, 5, 5))
run(dtype, (5, 5, 5, 5, 5, 5))
'''
"""


#######################################################################
Expand Down Expand Up @@ -1700,11 +1700,10 @@ def test_forward_gather_nd():
compare_tf_with_tvm_v2([input_data], concrete_func)


'''
#######################################################################
# BiasAdd
# -------
def test_forward_bias_add():
def _test_forward_bias_add():
"""test Op BiasAdd"""

def check_bias_add(lh_shpae, rh_shape, dtype):
Expand All @@ -1718,7 +1717,6 @@ def check_bias_add(lh_shpae, rh_shape, dtype):

check_bias_add((10, 8, 16, 32), (32,), dtype="int32")
check_bias_add((10, 20), (20,), dtype="float32")
'''


#######################################################################
Expand Down Expand Up @@ -1902,8 +1900,7 @@ def _test_resize_nearest_neighbor_dynamic_shape(in_shape, scale):
compare_tf_with_tvm_v2([input_data], concrete_func, opt_level=1)


'''
def test_forward_resize():
def _test_forward_resize():
""" Resize Bilinear, Nearest_Neighbor """
# TF default layout is NHWC
_test_resize_bilinear((4, 32, 32, 3), [50, 50], False)
Expand All @@ -1912,7 +1909,6 @@ def test_forward_resize():
_test_resize_bilinear_from_tensor((6, 50, 50, 3), True)
_test_resize_nearest_neighbor((6, 32, 32, 3), [20, 20])
_test_resize_nearest_neighbor_dynamic_shape((1, 16, 16, 3), scale=[2, 2])
'''


#######################################################################
Expand Down Expand Up @@ -3265,7 +3261,7 @@ def test_forward_one_hot():
# ----


'''
"""
def _test_forward_add_n(inputs):
root = tracking.AutoTrackable()
root.f = def_function.function(lambda x: tf.add_n(x))
Expand All @@ -3292,7 +3288,7 @@ def test_forward_add_n():
# _test_forward_add_n(in3)
# _test_forward_add_n(in4)
# _test_forward_add_n(in5)
'''
"""


#######################################################################
Expand Down Expand Up @@ -3326,7 +3322,7 @@ def test_forward_add_n():
test_forward_broadcast_to()
test_forward_fill()
test_forward_crop()
# test_forward_resize() - TODO
# _test_forward_resize() - TODO
test_forward_crop_and_resize()
test_forward_pad()
test_forward_unpack()
Expand Down Expand Up @@ -3395,5 +3391,5 @@ def test_forward_add_n():
# test_forward_lstm() - TODO

# End to End
# test_forward_image_classification_models() # TODO: Need docker update.
test_forward_image_classification_models()
# test_forward_ptb() - TODO
4 changes: 3 additions & 1 deletion tests/scripts/task_ci_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ set -o pipefail
#
# command: python3 -m pip install --user <package>==<version>
#
echo "Addtiional setup in" ${CI_IMAGE_NAME}
echo "Additional setup in" ${CI_IMAGE_NAME}

python3 -m pip install --user tlcpack-sphinx-addon==0.1.4 synr==0.2.1

python3 -m pip install --user tensorflow-hub

# Rebuild standalone_crt in build/ tree. This file is not currently archived by pack_lib() in
# Jenkinsfile. We expect config.cmake to be present from pack_lib().
# TODO(areusch): Make pack_lib() pack all the data dependencies of TVM.
Expand Down

0 comments on commit 5096688

Please sign in to comment.