Home
last modified time | relevance | path

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

12

/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_reader.h144 bool ReadEventType(DataReader* data, int attr_idx, size_t event_size);
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.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.py157 def event_size(self): member in OneHotCategorical
189 logits_2d = array_ops.reshape(logits, [-1, self.event_size])
192 samples = array_ops.one_hot(samples, self.event_size, dtype=self.dtype)
207 logits_2d = array_ops.reshape(logits, [-1, self.event_size])
208 x_2d = array_ops.reshape(x, [-1, self.event_size])
221 ret = array_ops.one_hot(ret, self.event_size, dtype=self.dtype)
Drelaxed_onehot_categorical.py217 def event_size(self): member in ExpRelaxedOneHotCategorical
251 logits_2d = array_ops.reshape(logits, [-1, self.event_size])
281 logits_2d = array_ops.reshape(logits, [-1, self.event_size])
282 x_2d = array_ops.reshape(x, [-1, self.event_size])
284 k = math_ops.cast(self.event_size, x.dtype)
Ddistribution_util.py310 event_size = scale.range_dimension_tensor()
311 event_size_const = tensor_util.constant_value(event_size)
315 event_shape = event_size[array_ops.newaxis]
Dmixture.py160 num_components = cat.event_size
/external/tensorflow/tensorflow/contrib/distributions/python/ops/bijectors/
Dmasked_autoregressive.py241 event_size = tensor_shape.dimension_value(
243 if event_size is None:
249 for _ in range(event_size):
260 event_size = array_ops.shape(x)[-1]
286 cond=lambda index, _: index < event_size,
Daffine.py388 event_size = array_ops.shape(x)[-1]
389 event_size = math_ops.cast(event_size, dtype=self._scale.dtype)
390 return math_ops.log(math_ops.abs(self._scale)) * event_size
/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/perfetto/src/traced/probes/ftrace/
Dcpu_reader.cc505 uint32_t event_size; in ParsePage() local
507 if (!ReadAndAdvance<uint32_t>(&ptr, end, &event_size)) in ParsePage()
510 if (event_size < 4) in ParsePage()
512 event_size -= 4; in ParsePage()
514 event_size = 4 * event_header.type_or_length; in ParsePage()
517 const uint8_t* next = ptr + event_size; in ParsePage()
/external/tensorflow/tensorflow/python/ops/
Dspecial_math_ops_test.py150 event_size = 0
152 x = constant_op.constant([], shape=[batch_size, event_size])
164 for event_size in [0, 1, 2]:
165 x = constant_op.constant([], shape=[batch_size, event_size])
/external/libchrome/mojo/core/
Duser_message_impl.cc139 const size_t event_size = event->GetSerializedSize(); in CreateOrExtendSerializedEventMessage() local
140 const size_t total_size = event_size + header_size + payload_size; in CreateOrExtendSerializedEventMessage()
142 event_size + header_size + payload_buffer_size; in CreateOrExtendSerializedEventMessage()
147 event_size); in CreateOrExtendSerializedEventMessage()
Dnode_controller.cc94 const size_t event_size = event->GetSerializedSize(); in DeserializeEventMessage() local
98 DCHECK_LE(event_size, size); in DeserializeEventMessage()
103 static_cast<uint8_t*>(data) + event_size, size - event_size); in DeserializeEventMessage()
/external/tensorflow/tensorflow/python/ops/distributions/
Dutil.py355 event_size = x_shape_static.dims[-1].value
356 if event_size < 2:
359 if event_size > max_event_size:
363 x_dtype.name, event_size, max_event_size))
366 event_size = array_ops.shape(x, name="x_shape")[-1]
376 event_size, max_event_size,
Dcategorical.py245 def event_size(self): member in Categorical
275 logits_2d = array_ops.reshape(self.logits, [-1, self.event_size])
/external/libchrome/base/files/
Dfile_path_watcher_linux.cc263 size_t event_size = sizeof(inotify_event) + event->len; in ThreadMain() local
264 DCHECK(i + event_size <= static_cast<size_t>(bytes_read)); in ThreadMain()
266 i += event_size; in ThreadMain()
/external/tensorflow/tensorflow/python/kernel_tests/distributions/
Dcategorical_test.py76 self.assertEqual(10, dist.event_size.eval())
79 self.assertEqual(10, tensor_util.constant_value(dist.event_size))
89 self.assertEqual(10, dist.event_size.eval())
/external/tensorflow/tensorflow/tools/api/golden/v1/
Dtensorflow.distributions.-categorical.pbtxt24 name: "event_size"
/external/tensorflow/tensorflow/contrib/seq2seq/python/ops/
Dsampler.py741 event_size = array_ops.shape(logits)[-1]
749 logits_2d = array_ops.reshape(logits, [-1, event_size])
Dhelper.py97 event_size = array_ops.shape(logits)[-1]
104 logits_2d = array_ops.reshape(logits, [-1, event_size])
/external/perfetto/test/
Dend_to_end_integrationtest.cc271 for (int ev = 0; ev < packet.ftrace_events().event_size(); ev++) { in TEST_F()
326 for (int i = 0; i < packet.ftrace_events().event_size(); i++) { in TEST_F()

12