Home
last modified time | relevance | path

Searched refs:input_length (Results 1 – 25 of 76) sorted by relevance

1234

/external/tensorflow/tensorflow/core/kernels/
Dfractional_pool_common.cc21 int input_length, int output_length, GuardedPhiloxRandom* generator) { in GeneratePoolingSequencePseudoRandom() argument
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()
82 int input_length, int output_length, GuardedPhiloxRandom* generator) { in GeneratePoolingSequenceRandom() argument
83 int k = input_length / output_length; in GeneratePoolingSequenceRandom()
84 int num_random_spot = input_length % output_length; in GeneratePoolingSequenceRandom()
100 std::vector<int64> GeneratePoolingSequence(int input_length, int output_length, in GeneratePoolingSequence() argument
106 if (input_length % output_length == 0) { in GeneratePoolingSequence()
[all …]
Dmfcc_dct.cc25 bool MfccDct::Initialize(int input_length, int coefficient_count) { in Initialize() argument
27 input_length_ = input_length; in Initialize()
34 if (input_length < 1) { in Initialize()
Dmfcc_mel_filterbank.cc41 bool MfccMelFilterbank::Initialize(int input_length, double input_sample_rate, in Initialize() argument
47 input_length_ = input_length; in Initialize()
59 if (input_length < 2) { in Initialize()
158 << "input_length: " << input_length in Initialize()
/external/brotli/java/org/brotli/wrapper/dec/
Ddecoder_jni.cc20 size_t input_length; member
58 handle->input_length = 0; in Java_org_brotli_wrapper_dec_DecoderJNI_nativeCreate()
108 JNIEnv* env, jobject /*jobj*/, jlongArray ctx, jint input_length) { in Java_org_brotli_wrapper_dec_DecoderJNI_nativePush() argument
116 if (input_length != 0) { in Java_org_brotli_wrapper_dec_DecoderJNI_nativePush()
118 if (handle->input_offset < handle->input_length) { in Java_org_brotli_wrapper_dec_DecoderJNI_nativePush()
122 handle->input_length = input_length; in Java_org_brotli_wrapper_dec_DecoderJNI_nativePush()
127 size_t in_size = handle->input_length - handle->input_offset; in Java_org_brotli_wrapper_dec_DecoderJNI_nativePush()
131 handle->input_offset = handle->input_length - in_size; in Java_org_brotli_wrapper_dec_DecoderJNI_nativePush()
135 context[1] = (handle->input_offset == handle->input_length) ? 1 : 0; in Java_org_brotli_wrapper_dec_DecoderJNI_nativePush()
174 context[1] = (handle->input_offset == handle->input_length) ? 1 : 0; in Java_org_brotli_wrapper_dec_DecoderJNI_nativePull()
[all …]
/external/tensorflow/tensorflow/python/keras/layers/
Dembeddings.py99 input_length=None, argument
102 if input_length:
103 kwargs['input_shape'] = (input_length,)
117 self.input_length = input_length
152 if self.input_length is None:
156 if isinstance(self.input_length, (list, tuple)):
157 in_lens = list(self.input_length)
159 in_lens = [self.input_length]
163 self.input_length), str(input_shape)))
169 self.input_length), str(input_shape)))
[all …]
Dlocal.py161 input_dim, input_length = input_shape[1], input_shape[2]
163 input_dim, input_length = input_shape[2], input_shape[1]
169 input_length, self.kernel_size[0], self.padding, self.strides[0])
184 self.kernel_shape = (input_dim, input_length,
187 self.kernel_shape = (input_length, input_dim,
197 input_shape=(input_length,),
228 input_length = input_shape[2]
230 input_length = input_shape[1]
232 length = conv_utils.conv_output_length(input_length, self.kernel_size[0],
Dwrappers.py235 input_length=input_shape[1],
242 input_length = input_shape[1]
243 if not input_length:
244 input_length = array_ops.shape(inputs)[1]
259 (-1, input_length), y, 1, output_shape[2:])
327 input_length = input_shape[1]
328 if not input_length:
329 input_length = K.shape(inputs)[1]
339 (-1, input_length), output_mask, 1, output_mask_int_shape[1:])
/external/tensorflow/tensorflow/python/layers/
Dutils.py107 def conv_output_length(input_length, filter_size, padding, stride, dilation=1): argument
120 if input_length is None:
125 output_length = input_length
127 output_length = input_length - dilated_filter_size + 1
129 output_length = input_length + dilated_filter_size - 1
157 def deconv_output_length(input_length, filter_size, padding, stride): argument
169 if input_length is None:
171 input_length *= stride
173 input_length += max(filter_size - stride, 0)
175 input_length -= (stride + filter_size - 2)
[all …]
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/
Dbin_decoder.cc162 size_t input_length = GRPC_SLICE_LENGTH(input); in grpc_chttp2_base64_decode() local
163 size_t output_length = input_length / 4 * 3; in grpc_chttp2_base64_decode()
167 if (GPR_UNLIKELY(input_length % 4 != 0)) { in grpc_chttp2_base64_decode()
172 static_cast<int>(input_length)); in grpc_chttp2_base64_decode()
176 if (input_length > 0) { in grpc_chttp2_base64_decode()
207 size_t input_length = GRPC_SLICE_LENGTH(input); in grpc_chttp2_base64_decode_with_length() local
212 if (GPR_UNLIKELY(input_length % 4 == 1)) { in grpc_chttp2_base64_decode_with_length()
217 static_cast<int>(input_length)); in grpc_chttp2_base64_decode_with_length()
223 input_length / 4 * 3 + tail_xtra[input_length % 4])) { in grpc_chttp2_base64_decode_with_length()
229 static_cast<int>(input_length / 4 * 3 + tail_xtra[input_length % 4])); in grpc_chttp2_base64_decode_with_length()
Dbin_encoder.cc52 size_t input_length = GRPC_SLICE_LENGTH(input); in grpc_chttp2_base64_encode() local
53 size_t input_triplets = input_length / 3; in grpc_chttp2_base64_encode()
54 size_t tail_case = input_length % 3; in grpc_chttp2_base64_encode()
170 size_t input_length = GRPC_SLICE_LENGTH(input); in grpc_chttp2_base64_encode_and_huffman_compress() local
171 size_t input_triplets = input_length / 3; in grpc_chttp2_base64_encode_and_huffman_compress()
172 size_t tail_case = input_length % 3; in grpc_chttp2_base64_encode_and_huffman_compress()
/external/webrtc/webrtc/modules/audio_coding/neteq/
Dpreemptive_expand.cc21 size_t input_length, in Process() argument
30 input_length / num_channels_ < (2 * k15ms - 1) * fs_mult_ || in Process()
31 old_data_length >= input_length / num_channels_ - overlap_samples_) { in Process()
34 output->PushBackInterleaved(input, input_length); in Process()
38 return TimeStretch::Process(input, input_length, kFastMode, output, in Process()
59 size_t input_length, in CheckCriteriaAndStretch() argument
91 input_length - unmodified_length * num_channels_); in CheckCriteriaAndStretch()
100 output->PushBackInterleaved(input, input_length); in CheckCriteriaAndStretch()
Daccelerate.cc18 size_t input_length, in Process() argument
25 input_length / num_channels_ < (2 * k15ms - 1) * fs_mult_) { in Process()
28 output->PushBackInterleaved(input, input_length); in Process()
31 return TimeStretch::Process(input, input_length, fast_accelerate, output, in Process()
45 size_t input_length, in CheckCriteriaAndStretch() argument
80 input_length - (fs_mult_120 + peak_index) * num_channels_); in CheckCriteriaAndStretch()
89 output->PushBackInterleaved(input, input_length); in CheckCriteriaAndStretch()
Dmerge.cc41 size_t Merge::Process(int16_t* input, size_t input_length, in Process() argument
56 input_vector.PushBackInterleaved(input, input_length); in Process()
58 assert(input_length_per_channel == input_length / num_channels_); in Process()
206 int16_t Merge::SignalScaling(const int16_t* input, size_t input_length, in SignalScaling() argument
211 std::min(static_cast<size_t>(64 * fs_mult_), input_length); in SignalScaling()
263 void Merge::Downsample(const int16_t* input, size_t input_length, in Downsample() argument
289 if (input_length <= length_limit) { in Downsample()
291 size_t temp_len = input_length - signal_offset; in Downsample()
303 input_length - signal_offset, input_downsampled_, in Downsample()
311 size_t start_position, size_t input_length, in CorrelateAndPeakSearch() argument
[all …]
Dmerge.h49 virtual size_t Process(int16_t* input, size_t input_length,
74 int16_t SignalScaling(const int16_t* input, size_t input_length,
81 void Downsample(const int16_t* input, size_t input_length,
88 size_t start_position, size_t input_length,
Daudio_classifier.cc41 int input_length, in Analysis() argument
44 assert((input_length / channels) == kDefaultFrameSizeSamples); in Analysis()
Daccelerate.h45 size_t input_length,
60 size_t input_length,
/external/tensorflow/tensorflow/python/keras/utils/
Dconv_utils.py90 def conv_output_length(input_length, filter_size, padding, stride, dilation=1): argument
103 if input_length is None:
108 output_length = input_length
110 output_length = input_length - dilated_filter_size + 1
112 output_length = input_length + dilated_filter_size - 1
140 def deconv_output_length(input_length, filter_size, padding, argument
157 if input_length is None:
166 length = input_length * stride + max(filter_size - stride, 0)
168 length = input_length * stride - (stride + filter_size - 2)
170 length = input_length * stride
[all …]
/external/icu/icu4c/source/test/intltest/
Dpunyref.cpp129 punycode_uint input_length, in punycode_encode() argument
146 for (j = 0; j < input_length; ++j) { in punycode_encode()
166 while (h < input_length) { in punycode_encode()
170 for (m = maxint, j = 0; j < input_length; ++j) { in punycode_encode()
183 for (j = 0; j < input_length; ++j) { in punycode_encode()
218 punycode_uint input_length, in punycode_decode() argument
238 for (b = j = 0; j < input_length; ++j) if (delim(input[j])) b = j; in punycode_decode()
250 for (in = b > 0 ? b + 1 : 0; in < input_length; ++out) { in punycode_decode()
261 if (in >= input_length) return punycode_bad_input; in punycode_decode()
Dpunyref.h56 punycode_uint input_length,
88 punycode_uint input_length,
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/
DPunycodeReference.java137 public static final int encode( int input_length, in encode() argument
153 for (j = 0; j < input_length; ++j) { in encode()
173 while (h < input_length) { in encode()
177 for (m = maxint, j = 0; j < input_length; ++j) { in encode()
190 for (j = 0; j < input_length; ++j) { in encode()
297 public static final int decode(int input_length, in decode() argument
316 for (b = j = 0; j < input_length; ++j){ in decode()
332 for (in = b > 0 ? b + 1 : 0; in < input_length; ++out) { in decode()
343 if (in >= input_length) return punycode_bad_input; in decode()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/stringprep/
DPunycodeReference.java140 public static final int encode( int input_length, in encode() argument
156 for (j = 0; j < input_length; ++j) { in encode()
176 while (h < input_length) { in encode()
180 for (m = maxint, j = 0; j < input_length; ++j) { in encode()
193 for (j = 0; j < input_length; ++j) { in encode()
300 public static final int decode(int input_length, in decode() argument
319 for (b = j = 0; j < input_length; ++j){ in decode()
335 for (in = b > 0 ? b + 1 : 0; in < input_length; ++out) { in decode()
346 if (in >= input_length) return punycode_bad_input; in decode()
/external/webrtc/webrtc/modules/audio_processing/transient/
Dmoving_moments_unittest.cc28 void CalculateMomentsAndVerify(const float* input, size_t input_length,
44 const float* input, size_t input_length, in CalculateMomentsAndVerify() argument
47 ASSERT_LE(input_length, kMaxOutputLength); in CalculateMomentsAndVerify()
50 input_length, in CalculateMomentsAndVerify()
54 for (size_t i = 1; i < input_length; ++i) { in CalculateMomentsAndVerify()
/external/tensorflow/tensorflow/contrib/training/python/training/
Dbucket_ops.py303 def bucket_by_sequence_length(input_length, argument
385 [input_length] + tensor_list) as name:
386 input_length = ops.convert_to_tensor(
387 input_length, dtype=dtypes.int32, name="input_length")
400 math_ops.less_equal(buckets_min, input_length),
401 math_ops.less(input_length, buckets_max))
409 tensors=[input_length] + tensor_list,
/external/tensorflow/tensorflow/lite/kernels/internal/
Dmfcc_dct.cc25 bool MfccDct::Initialize(int input_length, int coefficient_count) { in Initialize() argument
27 input_length_ = input_length; in Initialize()
33 if (input_length < 1) { in Initialize()
Dmfcc_mel_filterbank.cc40 bool MfccMelFilterbank::Initialize(int input_length, double input_sample_rate, in Initialize() argument
46 input_length_ = input_length; in Initialize()
58 if (input_length < 2) { in Initialize()

1234