Home
last modified time | relevance | path

Searched refs:normalize_tuple (Results 1 – 8 of 8) sorted by relevance

/external/tensorflow/tensorflow/python/layers/
Dutils_test.py42 self.assertEqual((2, 2, 2), utils.normalize_tuple(2, n=3, name='strides'))
44 (2, 1, 2), utils.normalize_tuple((2, 1, 2), n=3, name='strides'))
47 utils.normalize_tuple((2, 1), n=3, name='strides')
50 utils.normalize_tuple(None, n=3, name='strides')
Dutils.py49 def normalize_tuple(value, n, name): function
/external/tensorflow/tensorflow/python/keras/layers/
Dpooling.py66 self.pool_size = conv_utils.normalize_tuple(pool_size, 1, 'pool_size')
67 self.strides = conv_utils.normalize_tuple(strides, 1, 'strides')
282 self.pool_size = conv_utils.normalize_tuple(pool_size, 2, 'pool_size')
283 self.strides = conv_utils.normalize_tuple(strides, 2, 'strides')
555 self.pool_size = conv_utils.normalize_tuple(pool_size, 3, 'pool_size')
556 self.strides = conv_utils.normalize_tuple(strides, 3, 'strides')
Dconvolutional.py146 self.kernel_size = conv_utils.normalize_tuple(
148 self.strides = conv_utils.normalize_tuple(strides, rank, 'strides')
151 self.dilation_rate = conv_utils.normalize_tuple(
956 self.output_padding = conv_utils.normalize_tuple(
1227 self.output_padding = conv_utils.normalize_tuple(
1537 self.output_padding = conv_utils.normalize_tuple(
2598 self.size = conv_utils.normalize_tuple(size, 2, 'size')
2683 self.size = conv_utils.normalize_tuple(size, 3, 'size')
2765 self.padding = conv_utils.normalize_tuple(padding, 2, 'padding')
2860 height_padding = conv_utils.normalize_tuple(padding[0], 2,
[all …]
Dlocal.py138 self.kernel_size = conv_utils.normalize_tuple(kernel_size, 1, 'kernel_size')
139 self.strides = conv_utils.normalize_tuple(strides, 1, 'strides')
440 self.kernel_size = conv_utils.normalize_tuple(kernel_size, 2, 'kernel_size')
441 self.strides = conv_utils.normalize_tuple(strides, 2, 'strides')
Dconvolutional_recurrent.py516 self.kernel_size = conv_utils.normalize_tuple(kernel_size, 2, 'kernel_size')
517 self.strides = conv_utils.normalize_tuple(strides, 2, 'strides')
520 self.dilation_rate = conv_utils.normalize_tuple(dilation_rate, 2,
/external/tensorflow/tensorflow/python/keras/utils/
Dconv_utils_test.py73 conv_utils.normalize_tuple(2, n=3, name='strides'))
75 conv_utils.normalize_tuple((2, 1, 2), n=3, name='strides'))
78 conv_utils.normalize_tuple((2, 1), n=3, name='strides')
81 conv_utils.normalize_tuple(None, n=3, name='strides')
Dconv_utils.py54 def normalize_tuple(value, n, name): function