Home
last modified time | relevance | path

Searched refs:event_size (Results 1 – 23 of 23) sorted by relevance

/external/tensorflow/tensorflow/contrib/distributions/python/kernel_tests/
Dautoregressive_test.py40 def _random_scale_tril(self, event_size): argument
41 n = np.int32(event_size * (event_size + 1) // 2)
55 event_size = 2
57 batch_event_shape = np.concatenate([batch_shape, [event_size]], axis=0)
59 affine = Affine(scale_tril=self._random_scale_tril(event_size))
69 event_size = np.int32(2)
71 batch_event_shape = np.concatenate([batch_shape, [event_size]], axis=0)
73 affine = Affine(scale_tril=self._random_scale_tril(event_size))
83 event_shape=[event_size],
87 [sample_shape, batch_shape, [event_size]], axis=0)
/external/perf_data_converter/src/quipper/
Dtest_perf_data.cc145 const size_t event_size = sizeof(perf_event_header) + attr.size + in WriteTo() local
151 .size = static_cast<u16>(event_size), in WriteTo()
231 const size_t event_size = GetSize(); in WriteTo() local
238 .size = MaybeSwap16(static_cast<u16>(event_size)), in WriteTo()
257 CHECK_EQ(event_size, static_cast<u64>(written_event_size)); in WriteTo()
263 const size_t event_size = offsetof(struct mmap2_event, filename) + in WriteTo() local
272 .size = static_cast<u16>(event_size), in WriteTo()
299 const size_t event_size = sizeof(struct fork_event) + sample_id_.size(); in WriteTo() local
306 .size = MaybeSwap16(static_cast<u16>(event_size)), in WriteTo()
456 const size_t event_size = GetSize(); in WriteTo() local
[all …]
Dperf_parser_test.cc539 const size_t event_size = in TEST() local
546 .size = static_cast<u16>(event_size), in TEST()
1276 const size_t event_size = in TEST() local
1283 .size = static_cast<u16>(event_size), in TEST()
1297 const size_t event_size = in TEST() local
1304 .size = static_cast<u16>(event_size), in TEST()
Dperf_reader.h144 bool ReadEventType(DataReader* data, int attr_idx, size_t event_size);
Dperf_reader.cc726 size_t event_size) { in ReadEventType() argument
736 if (event_size == 0) { // Not in an event. in ReadEventType()
739 event_name_len = event_size - sizeof(perf_event_header) - sizeof(event_id); in ReadEventType()
/external/tensorflow/tensorflow/contrib/distributions/python/ops/
Donehot_categorical.py148 def event_size(self): member in OneHotCategorical
180 logits_2d = array_ops.reshape(logits, [-1, self.event_size])
183 samples = array_ops.one_hot(samples, self.event_size, dtype=self.dtype)
198 logits_2d = array_ops.reshape(logits, [-1, self.event_size])
199 x_2d = array_ops.reshape(x, [-1, self.event_size])
215 ret = array_ops.one_hot(ret, self.event_size, dtype=self.dtype)
Drelaxed_onehot_categorical.py208 def event_size(self): member in ExpRelaxedOneHotCategorical
242 logits_2d = array_ops.reshape(logits, [-1, self.event_size])
272 logits_2d = array_ops.reshape(logits, [-1, self.event_size])
273 x_2d = array_ops.reshape(x, [-1, self.event_size])
275 k = math_ops.cast(self.event_size, x.dtype)
Ddistribution_util.py302 event_size = scale.range_dimension_tensor()
303 event_size_const = tensor_util.constant_value(event_size)
307 event_shape = event_size[array_ops.newaxis]
Dmixture.py149 num_components = cat.event_size
/external/tensorflow/tensorflow/contrib/distributions/python/ops/bijectors/
Dmasked_autoregressive.py221 event_size = x.shape.with_rank_at_least(1)[-1].value
222 if event_size is None:
228 for _ in range(event_size):
239 event_size = array_ops.shape(x)[-1]
264 cond=lambda index, _: index < event_size,
Daffine.py391 event_size = distribution_util.pick_vector(
394 event_size = math_ops.cast(event_size, dtype=self._scale.dtype)
395 return math_ops.log(math_ops.abs(self._scale)) * event_size
/external/perfetto/src/ftrace_reader/
Dcpu_reader.cc361 uint32_t event_size; in ParsePage() local
363 if (!ReadAndAdvance<uint32_t>(&ptr, end, &event_size)) in ParsePage()
366 if (event_size < 4) in ParsePage()
368 event_size -= 4; in ParsePage()
370 event_size = 4 * event_header.type_or_length; in ParsePage()
373 const uint8_t* next = ptr + event_size; in ParsePage()
/external/wpa_supplicant_8/src/utils/
Deloop.h153 int eloop_register_event(void *event, size_t event_size,
165 void eloop_unregister_event(void *event, size_t event_size);
Deloop_win.c183 int eloop_register_event(void *event, size_t event_size, in eloop_register_event() argument
190 if (event_size != sizeof(HANDLE) || h == INVALID_HANDLE_VALUE) in eloop_register_event()
212 void eloop_unregister_event(void *event, size_t event_size) in eloop_unregister_event() argument
218 event_size != sizeof(HANDLE)) in eloop_unregister_event()
/external/tensorflow/tensorflow/python/ops/
Dspecial_math_ops_test.py131 event_size = 0
133 x = constant_op.constant([], shape=[batch_size, event_size])
143 for event_size in [0, 1, 2]:
144 x = constant_op.constant([], shape=[batch_size, event_size])
/external/tensorflow/tensorflow/python/ops/distributions/
Dutil.py361 event_size = x_shape_static[-1].value
362 if event_size < 2:
365 if event_size > max_event_size:
369 x_dtype.name, event_size, max_event_size))
372 event_size = array_ops.shape(x, name="x_shape")[-1]
382 event_size, max_event_size,
Dcategorical.py237 def event_size(self): member in Categorical
267 logits_2d = array_ops.reshape(self.logits, [-1, self.event_size])
/external/libchrome/base/files/
Dfile_path_watcher_linux.cc238 size_t event_size = sizeof(inotify_event) + event->len; in InotifyReaderCallback() local
239 DCHECK(i + event_size <= static_cast<size_t>(bytes_read)); in InotifyReaderCallback()
241 i += event_size; in InotifyReaderCallback()
/external/tensorflow/tensorflow/contrib/bayesflow/python/kernel_tests/
Dhmc_test.py107 event_size = np.prod(x_shape[independent_chain_ndims:])
108 feed_dict[step_size] = 0.1 / event_size
496 event_size = math_ops.reduce_prod(event_shape)
501 log_true_normalizer *= math_ops.cast(event_size, log_true_normalizer.dtype)
525 event_size,
/external/tensorflow/tensorflow/core/util/
Dsession_message.cc43 if (status_->event_size() > kMaxLogEvents) { in Log()
/external/tensorflow/tensorflow/python/kernel_tests/distributions/
Dcategorical_test.py70 self.assertEqual(10, dist.event_size.eval())
73 self.assertEqual(10, tensor_util.constant_value(dist.event_size))
83 self.assertEqual(10, dist.event_size.eval())
/external/perfetto/test/
Dend_to_end_integrationtest.cc94 for (int ev = 0; ev < packet.ftrace_events().event_size(); ev++) { in TEST()
/external/tensorflow/tensorflow/tools/api/golden/
Dtensorflow.distributions.-categorical.pbtxt24 name: "event_size"