Home
last modified time | relevance | path

Searched refs:slices (Results 1 – 25 of 146) sorted by relevance

123456

/external/tensorflow/tensorflow/core/distributed_runtime/rpc/
Dgrpc_util_test.cc25 std::vector<grpc::Slice> slices; in ToString() local
26 CHECK(buf.Dump(&slices).ok()); in ToString()
28 for (const grpc::Slice& s : slices) { in ToString()
37 std::vector<::grpc::Slice> slices; in MakeBuffer() local
41 slices.emplace_back(&str[pos], n); in MakeBuffer()
44 if (slices.empty()) { in MakeBuffer()
45 slices.emplace_back(); in MakeBuffer()
47 return ::grpc::ByteBuffer(&slices[0], slices.size()); in MakeBuffer()
93 int slices; in TEST() member
104 ::grpc::ByteBuffer src = MakeBuffer(proto.SerializeAsString(), c.slices); in TEST()
[all …]
Dgrpc_tensor_coding.cc201 ::grpc::Slice slices[2]; in EncodeTensorToByteBuffer()
205 slices[0] = ::grpc::Slice(slice_len); in EncodeTensorToByteBuffer()
206 memcpy(const_cast<uint8_t*>(slices[0].begin()), e.data(), e.size()); in EncodeTensorToByteBuffer()
209 memcpy(const_cast<uint8_t*>(slices[0].begin()) + e.size(), tdata.data(), in EncodeTensorToByteBuffer()
219 slices[1] = ::grpc::Slice( in EncodeTensorToByteBuffer()
228 total_bytes += slices[i].size(); in EncodeTensorToByteBuffer()
232 ::grpc::ByteBuffer tmp(&slices[0], num_slices); in EncodeTensorToByteBuffer()
Dgrpc_tensor_coding_test.cc37 std::vector<::grpc::Slice> slices; in Validate() local
38 (void)buf.Dump(&slices); in Validate()
40 for (const auto& s : slices) { in Validate()
Dgrpc_util.cc128 std::vector<::grpc::Slice> slices; in GrpcMaybeParseProto() local
129 if (!src.Dump(&slices).ok()) { in GrpcMaybeParseProto()
132 for (const ::grpc::Slice& s : slices) { in GrpcMaybeParseProto()
/external/perfetto/src/tracing/core/
Dtrace_packet_unittest.cc56 auto slice = tp.slices().begin(); in TEST()
57 ASSERT_NE(tp.slices().end(), slice); in TEST()
60 ASSERT_EQ(tp.slices().end(), ++slice); in TEST()
78 auto slice = tp.slices().begin(); in TEST()
79 ASSERT_NE(tp.slices().end(), slice); in TEST()
83 ASSERT_NE(tp.slices().end(), ++slice); in TEST()
87 ASSERT_NE(tp.slices().end(), ++slice); in TEST()
91 ASSERT_EQ(tp.slices().end(), ++slice); in TEST()
136 ASSERT_EQ(1u, tp.slices().size()); in TEST()
137 memcpy(&buf[preamble_size], tp.slices()[0].start, tp.slices()[0].size); in TEST()
[all …]
Dpacket_stream_validator.cc29 bool PacketStreamValidator::Validate(const Slices& slices) { in Validate() argument
30 SlicedProtobufInputStream stream(&slices); in Validate()
32 for (const Slice& slice : slices) in Validate()
/external/mesa3d/src/gallium/auxiliary/util/
Du_resource.c47 unsigned slices; in util_resource_size() local
50 slices = 6; in util_resource_size()
52 slices = depth; in util_resource_size()
54 slices = res->array_size; in util_resource_size()
57 util_format_get_stride(res->format, width) * slices); in util_resource_size()
/external/tensorflow/tensorflow/contrib/data/python/kernel_tests/
Ddataset_constructor_op_test.py110 def _build_sparse_tensor_slice_dataset(self, slices): argument
112 [[i, j] for i in range(len(slices)) for j in range(len(slices[i]))],
114 values = np.array([val for s in slices for val in s], dtype=np.float64)
116 [len(slices), max(len(s) for s in slices) + 1], dtype=np.int64)
121 slices = [[1., 2., 3.], [1.], [1.], [1., 2.], [], [1., 2.], [], [], []]
125 lambda: self._build_sparse_tensor_slice_dataset(slices),
/external/fio/profiles/
Dact.c44 struct act_slice *slices; member
51 struct act_slice *slices; member
313 slice = &apd->slices[apd->cur_slice]; in act_io_u_lat()
393 fails += show_slice(&act_run_data->slices[i], i + 1); in act_show_all_stats()
405 if (!act_run_data->slices) { in put_act_ref()
406 act_run_data->slices = calloc(apd->nr_slices, sizeof(struct act_slice)); in put_act_ref()
411 struct act_slice *dst = &act_run_data->slices[slice]; in put_act_ref()
412 struct act_slice *src = &apd->slices[slice]; in put_act_ref()
435 apd->slices = calloc(nr_slices, sizeof(struct act_slice)); in act_td_init()
447 free(apd->slices); in act_td_exit()
[all …]
/external/mesa3d/src/mesa/swrast/
Ds_texture.c92 GLuint slices = texture_slices(texImage); in _swrast_alloc_texture_image_buffer() local
102 swImg->Buffer = _mesa_align_malloc(bytesPerSlice * slices, 512); in _swrast_alloc_texture_image_buffer()
110 for (i = 0; i < slices; i++) { in _swrast_alloc_texture_image_buffer()
272 unsigned int i, slices; in _swrast_map_texture() local
292 slices = texture_slices(texImage); in _swrast_map_texture()
294 for (i = 0; i < slices; i++) { in _swrast_map_texture()
332 unsigned int i, slices; in _swrast_unmap_texture() local
343 slices = texture_slices(texImage); in _swrast_unmap_texture()
345 for (i = 0; i < slices; i++) { in _swrast_unmap_texture()
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_BatchMatMul.pbtxt24 If `True`, adjoint the slices of `x`. Defaults to `False`.
30 If `True`, adjoint the slices of `y`. Defaults to `False`.
33 summary: "Multiplies slices of two tensors in batches."
35 Multiplies all slices of `Tensor` `x` and `y` (each slice can be
38 individual slices can optionally be adjointed (to adjoint a matrix
Dapi_def_ReverseSequence.pbtxt34 summary: "Reverses variable length slices."
36 This op first slices `input` along the dimension `batch_dim`, and for each
44 slice `i`, with the first `seq_lengths[i]` slices along dimension
56 # then slices of input are reversed on seq_dim, but only up to seq_lengths:
78 # then slices of input are reversed on seq_dim, but only up to seq_lengths:
Dapi_def_ScatterNd.pbtxt31 values or slices within a zero tensor of the given `shape` according to
33 extracts values or slices from a given tensor.
44 (if `indices.shape[-1] = shape.rank`) or slices
73 We can also, insert entire slices of a higher rank tensor all at once. For
74 example, if we wanted to insert two slices in the first dimension of a
Dapi_def_GatherNd.pbtxt22 summary: "Gather slices from `params` into a Tensor with shape specified by `indices`."
30 Whereas in @{tf.gather} `indices` defines slices into the first
31 dimension of `params`, in `tf.gather_nd`, `indices` defines slices into the
40 (if `indices.shape[-1] == params.rank`) or slices
Dapi_def_ResourceScatterNdUpdate.pbtxt31 summary: "Applies sparse `updates` to individual values or slices within a given"
41 indices into elements (if `K = P`) or slices (if `K < P`) along the `K`th
67 slices.
/external/tensorflow/tensorflow/core/util/
Dsaved_tensor_slice.proto1 // Protocol buffers for saved tensor slices. It's used for the brain tensor
9 // table of contents on all the tensor slices saved in this file. Since the key
32 // Metadata describing the set of slices of the same tensor saved in a
44 // Explicit list of slices saved in the checkpoint file.
48 // Metadata describing the set of tensor slices saved in a checkpoint file.
51 // Each SavedSliceMeta describes the slices for one tensor.
79 // as a table of contents, listing all the tensor slices saved in this file.
/external/mesa3d/src/gallium/drivers/vc4/
Dvc4_resource.c49 rsc->slices[0].size, in vc4_resource_bo_alloc()
50 rsc->slices[0].offset, in vc4_resource_bo_alloc()
51 rsc->slices[0].offset + in vc4_resource_bo_alloc()
52 rsc->slices[0].size + in vc4_resource_bo_alloc()
57 rsc->slices[0].offset + in vc4_resource_bo_alloc()
58 rsc->slices[0].size + in vc4_resource_bo_alloc()
82 slice = &rsc->slices[0]; in vc4_resource_transfer_unmap()
85 slice = &rsc->slices[ptrans->level]; in vc4_resource_transfer_unmap()
275 struct vc4_resource_slice *slice = &rsc->slices[level]; in vc4_resource_transfer_map()
386 return vc4_screen_bo_get_handle(pscreen, rsc->bo, rsc->slices[0].stride, in vc4_resource_get_handle()
[all …]
/external/perfetto/protos/perfetto/ipc/
Dconsumer_port.proto90 // Each streaming reply returns one or more slices for one or more trace
92 // IPC). The returned slices are ordered and contiguous: packets' slices are
93 // not interleaved and slices are sent only once all slices for a packet are
99 // might have no slices marked as |last_slice_for_packet|==true, in the case
104 repeated Slice slices = 2; field
/external/tensorflow/tensorflow/python/keras/_impl/keras/utils/
Dconv_utils.py69 slices = [slice(None, None, -1) for _ in range(kernel.ndim)]
71 slices[-2:] = no_flip
72 return np.copy(kernel[slices])
/external/tensorflow/tensorflow/python/kernel_tests/
Dsplit_op_test.py138 slices = [slice(0, x) for x in shape]
141 slices[split_dim] = slice(offset, offset + size_splits[i])
143 self.assertAllEqual(result[i], inp[slices])
164 slices = [slice(0, x) for x in shape]
167 slices[split_dim] = slice(offset, offset + size_splits[i])
169 self.assertAllEqual(result[i], inp[slices])
276 slices = [slice(0, x) for x in shape]
280 slices[split_dim] = slice(offset, offset + length)
282 self.assertAllEqual(result[i], inp[slices])
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dalias_analysis.cc42 const std::set<BufferAllocation::Slice> slices = in AddAliasingInformationToIrArray() local
44 if (slices.empty() || slices.size() > 1) { in AddAliasingInformationToIrArray()
50 buffer_slice = *slices.begin(); in AddAliasingInformationToIrArray()
/external/mesa3d/src/gallium/drivers/freedreno/a3xx/
Dfd3_texture.c262 A3XX_TEX_CONST_2_PITCH(fd3_pipe2nblocksx(cso->format, rsc->slices[lvl].pitch) * rsc->cpp); in fd3_sampler_view_create()
268 A3XX_TEX_CONST_3_LAYERSZ1(rsc->slices[0].size0); in fd3_sampler_view_create()
273 A3XX_TEX_CONST_3_LAYERSZ1(rsc->slices[lvl].size0); in fd3_sampler_view_create()
274 while (lvl < cso->u.tex.last_level && sz2 != rsc->slices[lvl+1].size0) in fd3_sampler_view_create()
275 sz2 = rsc->slices[++lvl].size0; in fd3_sampler_view_create()
/external/tensorflow/tensorflow/contrib/distributions/python/ops/bijectors/
Dmasked_autoregressive.py293 slices = []
301 slices.append([row_slice, col_slice])
304 return slices
315 slices = _gen_slices(num_blocks, n_in, n_out, mask_type=mask_type)
316 for [row_slice, col_slice] in slices:
/external/mesa3d/src/gallium/drivers/ilo/
Dilo_resource.c254 FREE(tex->slices[0]); in tex_free_slices()
261 struct ilo_texture_slice *slices; in tex_alloc_slices() local
274 slices = CALLOC(depth * templ->array_size, sizeof(*slices)); in tex_alloc_slices()
275 if (!slices) in tex_alloc_slices()
278 tex->slices[0] = slices; in tex_alloc_slices()
282 tex->slices[lv] = tex->slices[lv - 1] + in tex_alloc_slices()
/external/llvm/test/CodeGen/X86/
Dload-slice.ll9 ; Check that independent slices leads to independent loads then the slices leads to
33 ; Same for REGULAR, we eliminate register bank copy with each slices.
83 ; The 64-bits should have been split in one 32-bits and one 16-bits slices.
113 ; Check that we do not optimize overlapping slices.
115 ; The 64-bits should NOT have been split in as slices are overlapping.

123456