CoolFace
Apppublic

karolmajek/maxdeeplab

sourceHugging Faceupdated 5y agoView on Hugging Face
0likes
test_utils_test.py33 linesDownload Raw Back to model
1# coding=utf-82# Copyright 2021 The Deeplab2 Authors.3#4# Licensed under the Apache License, Version 2.0 (the "License");5# you may not use this file except in compliance with the License.6# You may obtain a copy of the License at7#8#     http://www.apache.org/licenses/LICENSE-2.09#10# Unless required by applicable law or agreed to in writing, software11# distributed under the License is distributed on an "AS IS" BASIS,12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13# See the License for the specific language governing permissions and14# limitations under the License.15 16"""Tests for test_utils."""17 18import tensorflow as tf19 20from deeplab2.model import test_utils21 22 23class TestUtilsTest(tf.test.TestCase):24 25  def test_create_test_input(self):26    input_shape = [1, 2, 3, 4]27    input_tensor = test_utils.create_test_input(*input_shape)28    self.assertListEqual(input_tensor.get_shape().as_list(), input_shape)29 30 31if __name__ == '__main__':32  tf.test.main()33