From f4a61fdbb2d11e01413ff20a779dbc65bd7162a5 Mon Sep 17 00:00:00 2001 From: Tinazhang Date: Mon, 25 May 2020 15:26:08 -0400 Subject: [PATCH] Adding new UT cases and missing TCs in PY Ops. --- .../golden/random_grayscale_01_result.npz | Bin 0 -> 644 bytes .../golden/random_grayscale_02_result.npz | Bin 0 -> 644 bytes .../golden/random_horizontal_01_c_result.npz | Bin 0 -> 644 bytes .../golden/random_horizontal_01_py_result.npz | Bin 0 -> 644 bytes .../golden/random_vertical_01_c_result.npz | Bin 0 -> 644 bytes .../golden/random_vertical_01_py_result.npz | Bin 0 -> 644 bytes tests/ut/python/dataset/test_random_crop.py | 234 +++++++++++------- .../dataset/test_random_crop_and_resize.py | 120 +++++---- .../python/dataset/test_random_grayscale.py | 189 ++++++++++++++ .../dataset/test_random_horizontal_flip.py | 153 +++++++++++- .../dataset/test_random_vertical_flip.py | 147 ++++++++++- .../ut/python/dataset/test_serdes_dataset.py | 6 +- 12 files changed, 697 insertions(+), 152 deletions(-) create mode 100644 tests/ut/data/dataset/golden/random_grayscale_01_result.npz create mode 100644 tests/ut/data/dataset/golden/random_grayscale_02_result.npz create mode 100644 tests/ut/data/dataset/golden/random_horizontal_01_c_result.npz create mode 100644 tests/ut/data/dataset/golden/random_horizontal_01_py_result.npz create mode 100644 tests/ut/data/dataset/golden/random_vertical_01_c_result.npz create mode 100644 tests/ut/data/dataset/golden/random_vertical_01_py_result.npz create mode 100644 tests/ut/python/dataset/test_random_grayscale.py diff --git a/tests/ut/data/dataset/golden/random_grayscale_01_result.npz b/tests/ut/data/dataset/golden/random_grayscale_01_result.npz new file mode 100644 index 0000000000000000000000000000000000000000..d606ab8619e955f7d35ecb0939175938bd2604ec GIT binary patch literal 644 zcmWIWW@Zs#fB;1XS80XvKa30vAk4`i!jM>06mOuHS5V2wAOIEwDFjJ^z+}Hr-+)L) zhBAg~^_0}&LuqFrRwFD=9FXt-J4j+6yOd`y< f5)RP+P|yHQEAV6#;LXYgl3@fwb0BRF3Sb5RjBBXL literal 0 HcmV?d00001 diff --git a/tests/ut/data/dataset/golden/random_grayscale_02_result.npz b/tests/ut/data/dataset/golden/random_grayscale_02_result.npz new file mode 100644 index 0000000000000000000000000000000000000000..3333dd17841153a4453cb2a8e75dce6e8f10ce56 GIT binary patch literal 644 zcmWIWW@Zs#fB;1Xmwhc2e;64UK$w$3gdwr0DBeIXub`5VK>#cWQV5a+fysWMz5$Vp z3}p<}>M5zk$wlf`3hFif>N*PQY57GZMTvRw`9&$IAYr$}oZ?iVcyUHzK`M~1VW^{E zq^YA&t3W>BYG6*zE6pva)Jx7UO4Z9P%_+$Qx;L?sE50Z-IX|zsq^LBxgsYGNqKYdo z1tMF>=*`et$mGnJRLI<3$P!e@s^QHDgiLLPY*3{sC6xuKT!rirOh9k?TNHA5Gk7z$ z7jgy_a%p%oM}YiaQ^@V-=jZhw2*8B5eMuotQfF)-uSNtbP(Cv^F+H`AFSd|hBZDCW zY^6X3&_2PSLLrcSEUksY84wH7ObSIH7KjEFioq>8(>1*t&3hM|sv zk*1D9tpfRgtARN=uQa!yQZG5bC{-`FG^ZpJ=-$LiuK1$VQXzADAxlsptA;lt5HhtDvO$%mlvEa^auu>iFaf>kZ&AqM&EU=0 zUdS0#$fe=U90BrwO(D0RpP$!%AOI8I_9cZpNu9BUyc!X#K>5tv#PrlczSu&3jSPki zu$2NCK>GxP3WY%Sv9uNnXFx1SGbt2-SRfiyC#cWQV5a+fysWMz5$Vp z3}p<}>M5zk$wlf`3hFif>N*PQY57GZMTvRw`9&$IAYr$}oZ?iVcyUHzK`M~1VW^{E zq^YA&t3W>BYG6*zE6pva)Jx7UO4Z9P%_+$Qx;L?sE50Z-IX|zsq^LBxgsYGNqKYdo z1tMF>=*`et$mGnJRLI<3$P!e@s^QHDgiLLPY*3{sC6xuKT!rirOh9k?TNHA5Gk7z$ z7jgy_a%p%oM}YiaQ^@V-=jZhw2*8B5eMuotQfF)-uSNtbP(Cv^F+H`AFSd|hBZDCW zY^6X3&_2PSLLrcSEUksY84wH7ObSIH7KjEFioq>SX8-^I literal 0 HcmV?d00001 diff --git a/tests/ut/data/dataset/golden/random_vertical_01_c_result.npz b/tests/ut/data/dataset/golden/random_vertical_01_c_result.npz new file mode 100644 index 0000000000000000000000000000000000000000..e09d5774e02ac2eef32dd357e89c268e0bae1cf3 GIT binary patch literal 644 zcmWIWW@Zs#fB;1X4Pp12e;64UK$w$3gdwr0DBeIXub`5VK>#cWQV5a+fysWMz5$Vp z3}p<}>M5zk$wlf`3hFif>N*PQY57GZMTvRw`9&$IAYr$}oZ?iVcyUHzK`M~1VW^{E zq^YA&t3W>BYG6*zE6pva)Jx7UO4Z9P%_+$Qx;L?sE50Z-IX|zsq^LBxgsYGNqKYdo z1tMF>=*`et$mGnJRLI<3$P!e@s^QHDgiLLPY*3{sC6xuKT!rirOh9k?TNHA5Gk7z$ z7jgy_a%p%oM}YiaQ^@V-=jZhw2*8B5eMuotQfF)-uSNtbP(Cv^F+H`AFSd|hBZDCW zY^6X3&_2PSLLrcSEUksY84wH7ObSIH7KjEFioqPQ{Ce>%rBHIDU?crSt1RxL?)gkx7IZ gSHc1M9|{`4X$78)0=!w-Kr)O#Xbz;!K>^GF0I=__eEa=1!%#=T zNK;3lR)KuL)xeybSDIT;sh6Bzl&Y6onp2VqbZ=rMSA0=wa(-TMNl|HX30ENlL={(F z3PiS$(VL;Qkja@bsgSw7kR_;)Rl}PR2$|Xn*`P{ON-7IdxeD1Mn1J5&w