Home
last modified time | relevance | path

Searched refs:output_length (Results 1 – 25 of 40) sorted by relevance

12

/external/tensorflow/tensorflow/core/kernels/
Dfractional_pool_common.cc21 int input_length, int output_length, GuardedPhiloxRandom* generator) { in GeneratePoolingSequencePseudoRandom() argument
22 std::vector<int64> cum_seq(output_length + 1, 0); in GeneratePoolingSequencePseudoRandom()
23 std::vector<int64> diff(output_length, 0); in GeneratePoolingSequencePseudoRandom()
25 double alpha = static_cast<double>(input_length) / output_length; in GeneratePoolingSequencePseudoRandom()
26 int k = input_length / output_length; in GeneratePoolingSequencePseudoRandom()
60 double u_max2 = (input_length + 1 - k) / alpha - (output_length - 1); in GeneratePoolingSequencePseudoRandom()
69 cum_seq[output_length] = input_length + 1; in GeneratePoolingSequencePseudoRandom()
70 for (int i = 1; i < output_length; ++i) { in GeneratePoolingSequencePseudoRandom()
74 for (int i = 0; i < output_length; ++i) { in GeneratePoolingSequencePseudoRandom()
82 int input_length, int output_length, GuardedPhiloxRandom* generator) { in GeneratePoolingSequenceRandom() argument
[all …]
/external/sfntly/cpp/src/test/
Dchrome_subsetter.cc41 int output_length = in TestChromeSubsetter() local
49 EXPECT_GT(output_length, 0); in TestChromeSubsetter()
51 if (output_length > 0) { in TestChromeSubsetter()
60 int byte_count = fwrite(output_buffer, 1, output_length, output_file); in TestChromeSubsetter()
61 EXPECT_EQ(byte_count, output_length); in TestChromeSubsetter()
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dbin_decoder.cc163 size_t output_length = input_length / 4 * 3; in grpc_chttp2_base64_decode() local
179 output_length--; in grpc_chttp2_base64_decode()
181 output_length--; in grpc_chttp2_base64_decode()
185 output = GRPC_SLICE_MALLOC(output_length); in grpc_chttp2_base64_decode()
206 size_t output_length) { in grpc_chttp2_base64_decode_with_length() argument
208 grpc_slice output = GRPC_SLICE_MALLOC(output_length); in grpc_chttp2_base64_decode_with_length()
222 if (GPR_UNLIKELY(output_length > in grpc_chttp2_base64_decode_with_length()
228 static_cast<int>(output_length), in grpc_chttp2_base64_decode_with_length()
/external/tensorflow/tensorflow/python/layers/
Dutils.py125 output_length = input_length
127 output_length = input_length - dilated_filter_size + 1
129 output_length = input_length + dilated_filter_size - 1
130 return (output_length + stride - 1) // stride
133 def conv_input_length(output_length, filter_size, padding, stride): argument
145 if output_length is None:
154 return (output_length - 1) * stride - 2 * pad + filter_size
/external/libtextclassifier/native/utils/tflite/
Dtoken_encoder.cc102 const TfLiteTensor& output_length = in Prepare() local
105 if (tflite::IsConstantTensor(&output_length)) { in Prepare()
106 return ResizeOutputTensors(context, node, output_length.data.i64[0]); in Prepare()
125 const TfLiteTensor& output_length = in Eval() local
129 if (!tflite::IsConstantTensor(&output_length)) { in Eval()
131 context, ResizeOutputTensors(context, node, output_length.data.i64[0])); in Eval()
Ddist_diversification.cc102 TfLiteTensor& output_length = in Prepare() local
104 TF_LITE_ENSURE_OK(context, context->ResizeTensor(context, &output_length, in Prepare()
136 TfLiteTensor& output_length = in Eval() local
138 *output_length.data.i32 = indices.size(); in Eval()
Dtext_encoder.cc192 const TfLiteTensor& output_length = in Prepare() local
195 if (tflite::IsConstantTensor(&output_length)) { in Prepare()
196 return ResizeOutputTensors(context, node, output_length.data.i64[0]); in Prepare()
227 const TfLiteTensor& output_length = in Eval() local
230 context, ResizeOutputTensors(context, node, output_length.data.i64[0])); in Eval()
/external/webrtc/webrtc/modules/audio_coding/neteq/tools/
Dresample_input_audio_file.cc29 size_t output_length = 0; in Read() local
31 destination, samples, output_length), in Read()
33 RTC_CHECK_EQ(samples, output_length); in Read()
/external/tensorflow/tensorflow/python/keras/utils/
Dconv_utils.py108 output_length = input_length
110 output_length = input_length - dilated_filter_size + 1
112 output_length = input_length + dilated_filter_size - 1
113 return (output_length + stride - 1) // stride
116 def conv_input_length(output_length, filter_size, padding, stride): argument
128 if output_length is None:
137 return (output_length - 1) * stride - 2 * pad + filter_size
/external/icu/icu4c/source/test/intltest/
Dpunyref.cpp132 punycode_uint *output_length, in punycode_encode() argument
141 max_out = *output_length; in punycode_encode()
211 *output_length = out; in punycode_encode()
220 punycode_uint *output_length, in punycode_decode() argument
231 max_out = *output_length; in punycode_decode()
298 *output_length = out; in punycode_decode()
Dpunyref.h59 punycode_uint *output_length,
90 punycode_uint *output_length,
/external/tensorflow/tensorflow/core/ops/
Daudio_ops.cc81 DimensionHandle output_length; in SpectrogramShapeFn() local
83 output_length = c->UnknownDim(); in SpectrogramShapeFn()
93 output_length = c->MakeDim(output_length_value); in SpectrogramShapeFn()
99 c->MakeShape({input_channels, output_length, output_channels})); in SpectrogramShapeFn()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/stringprep/
DPunycodeReference.java143 int[] output_length, in encode() argument
151 max_out = output_length[0]; in encode()
222 output_length[0] = out; in encode()
302 int[] output_length, in decode() argument
312 max_out = output_length[0]; in decode()
383 output_length[0] = out; in decode()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/
DPunycodeReference.java140 int[] output_length, in encode() argument
148 max_out = output_length[0]; in encode()
219 output_length[0] = out; in encode()
299 int[] output_length, in decode() argument
309 max_out = output_length[0]; in decode()
380 output_length[0] = out; in decode()
/external/webrtc/webrtc/modules/audio_coding/neteq/
Dmerge.cc61 size_t output_length = 0; in Process() local
138 output_length = best_correlation_index + input_length_per_channel; in Process()
141 output->AssertSize(output_length); in Process()
143 assert(output->Size() == output_length); in Process()
146 sizeof(temp_data[0]) * output_length); in Process()
156 return output_length - old_length; in Process()
/external/libchrome/base/
Drand_util_posix.cc52 void RandBytes(void* output, size_t output_length) { in RandBytes() argument
55 ReadFromFD(urandom_fd, static_cast<char*>(output), output_length); in RandBytes()
/external/tensorflow/tensorflow/python/ops/signal/
Dreconstruction_ops.py77 output_length = frame_length + frame_step * (frames - 1)
84 output_shape = full_shape([output_length])
153 signal = signal[..., :output_length]
/external/python/apitools/apitools/base/py/
Dcompression_test.py75 output_length = 40
78 output_length,
81 self.assertLessEqual(output_length, output.length)
/external/grpc-grpc/src/core/lib/slice/
Dpercent_encoding.cc46 size_t output_length = 0; in grpc_percent_encode_slice() local
53 output_length += unres ? 1 : 3; in grpc_percent_encode_slice()
61 grpc_slice out = GRPC_SLICE_MALLOC(output_length); in grpc_percent_encode_slice()
/external/python/cryptography/tests/hazmat/primitives/
Dtest_hash_vectors.py284 output_length = int(vector['outputlen']) // 8
286 shake = hashes.SHAKE128(digest_size=output_length)
320 output_length = int(vector['outputlen']) // 8
322 shake = hashes.SHAKE256(digest_size=output_length)
/external/zlib/contrib/bench/
Dzlib_bench.cc253 size_t output_length = 0; in zlib_file() local
255 output_length += compressed[i].size(); in zlib_file()
268 static_cast<unsigned>(output_length), output_length * 100.0 / length); in zlib_file()
/external/tensorflow/tensorflow/python/keras/layers/
Dlocal.py183 self.output_length = conv_utils.conv_output_length(
187 self.kernel_shape = (self.output_length, self.kernel_size[0] * input_dim,
200 self.filters, self.output_length)
203 self.output_length, self.filters)
220 self.kernel_shape = (self.output_length * self.filters,
247 shape=(self.output_length, self.filters),
279 (self.output_length,), self.data_format)
/external/sfntly/cpp/src/sample/chromium/
Dchrome_subsetter.cc120 int output_length = in main() local
128 int result = SaveFile(argv[2], output_buffer, output_length) ? 1 : 0; in main()
/external/v8/third_party/zlib/contrib/bench/
Dzlib_bench.cc273 size_t output_length = 0; in zlib_file() local
275 output_length += compressed[i].size(); in zlib_file()
288 static_cast<unsigned>(output_length), output_length * 100.0 / length); in zlib_file()
/external/grpc-grpc/test/core/transport/chttp2/
Dbin_decoder_test.cc64 size_t output_length) { in base64_decode_with_length() argument
66 grpc_slice out = grpc_chttp2_base64_decode_with_length(ss, output_length); in base64_decode_with_length()

12