Searched defs:slice (Results 1 - 25 of 180) sorted by relevance

12345678

/external/perfetto/src/tracing/core/
H A Dtrace_packet.cc40 void TracePacket::AddSlice(Slice slice) { argument
41 size_ += slice.size;
42 slices_.push_back(std::move(slice));
H A Dtrace_packet_unittest.cc56 auto slice = tp.slices().begin(); local
57 ASSERT_NE(tp.slices().end(), slice);
58 ASSERT_EQ(ser_buf.data(), slice->start);
59 ASSERT_EQ(ser_buf.size(), slice->size);
60 ASSERT_EQ(tp.slices().end(), ++slice);
78 auto slice = tp.slices().begin(); local
79 ASSERT_NE(tp.slices().end(), slice);
80 ASSERT_EQ(ser_buf.data(), slice->start);
81 ASSERT_EQ(3u, slice->size);
83 ASSERT_NE(tp.slices().end(), ++slice);
[all...]
/external/perfetto/include/perfetto/tracing/core/
H A Dslice.h45 Slice slice; local
46 slice.own_data_.reset(new uint8_t[size]);
47 slice.start = &slice.own_data_[0];
48 slice.size = size;
49 return slice;
68 // TODO(primiano): most TracePacket(s) fit in a slice or two. We need something
/external/tensorflow/tensorflow/compiler/tf2xla/kernels/
H A Dunpack_op.cc77 auto slice = ctx->builder()->Slice(input, start_indices, limit_indices, variable
80 auto result = ctx->builder()->Reshape(slice, output_shape.dim_sizes());
/external/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
H A Dllvm_util.h62 llvm::ArrayRef<T> AsArrayRef(const tensorflow::gtl::ArraySlice<T>& slice) { argument
63 return llvm::ArrayRef<T>(slice.data(), slice.size());
/external/eigen/unsupported/test/
H A Dcxx11_tensor_ref.cpp98 TensorRef<Tensor<float, 5>> slice = tensor.slice(indices, sizes); local
99 VERIFY_IS_EQUAL(slice(0,0,0,0,0), tensor(1,2,3,4,5));
103 slice = tensor.slice(indices2, sizes2);
107 VERIFY_IS_EQUAL(slice(0,0,i,j,k), tensor(1,1,3+i,4+j,5+k));
114 slice = tensor.slice(indices3, sizes3);
115 VERIFY_IS_EQUAL(slice.data(), tensor.data());
190 TensorRef<Tensor<float, 4>> slice local
[all...]
/external/llvm/include/llvm/DebugInfo/CodeView/
H A DStreamRef.h27 // Use StreamRef.slice() instead.
53 Buffer = Buffer.slice(0, MaxLength);
82 StreamRef slice(uint32_t Offset, uint32_t Len) const { function in class:llvm::codeview::StreamRef
/external/tensorflow/tensorflow/core/framework/
H A Dtensor_slice_test.cc83 TensorSlice slice; local
84 Status s = TensorSlice::Parse("-:-:1,3:4:5", &slice);
92 TensorSlice slice; local
93 Status s = TensorSlice::Parse("-:-1,3", &slice);
115 TensorSlice slice; local
117 TensorSlice::Parse("19223372036854775808,19223372036854775808", &slice);
126 // Testing the slice intersection
181 // Testing applying a slice to a tensor shape
200 "shape = [2,4,5,8], slice = 1,1:1,4:-:-",
292 TensorSlice slice(
[all...]
/external/tensorflow/tensorflow/core/util/
H A Dsaved_tensor_slice_util.cc28 string EncodeTensorNameSlice(const string& name, const TensorSlice& slice) { argument
30 // All the tensor slice keys will start with a 0
33 tensorflow::strings::OrderedCode::WriteNumIncreasing(&buffer, slice.dims());
34 for (int d = 0; d < slice.dims(); ++d) {
38 slice.start(d));
40 slice.length(d));
46 tensorflow::TensorSlice* slice) {
69 slice->SetFullSlice(x);
83 slice->set_start(d, start);
84 slice
45 DecodeTensorNameSlice(const string& code, string* name, tensorflow::TensorSlice* slice) argument
90 ParseShapeAndSlice(const string& shape_and_slice, TensorShape* shape, TensorSlice* slice, TensorShape* shape_slice) argument
[all...]
H A Dtensor_slice_set.h17 // tensor and then "query" if we have data for a given slice.
48 // Register a new slice for the tensor. The "tag" is an arbitrary string
49 // associated with the slice (in one application it denotes the name of the
50 // file that contains the slice); the "data" points to the data of the tensor
51 // slice (it can be a nullptr).
53 // the data is always available during the life time of the tensor slice set
55 Status Register(const TensorSlice& slice, const string& tag,
58 // Query about a new slice: checks if we have data for "slice" and if we have
59 // the data and "data" is not nullptr, fill "data" with the slice dat
73 TensorSlice slice; member in struct:tensorflow::checkpoint::TensorSliceSet::SliceInfo
[all...]
H A Dtensor_slice_set.cc33 Status TensorSliceSet::Register(const TensorSlice& slice, const string& tag, argument
36 TF_RETURN_IF_ERROR(slice.SliceTensorShape(shape_, &result_shape));
37 string str = slice.DebugString();
40 slices_hull_ = slice;
42 // We check if there is any intersection between this slice and any of the
44 if (slices_hull_.Overlaps(slice)) {
46 if (slice.Overlaps(x.second.slice)) {
47 return errors::Internal("Overlapping slices: existing slice = ",
48 x.first, ", new slice
63 Query(const TensorSlice& slice, float* data) const argument
119 QueryMeta( const TensorSlice& slice, std::vector<std::pair<TensorSlice, string>>* results) const argument
171 RegisterTensorSlice( const string& name, const TensorShape& shape, DataType type, const string& tag, const TensorSlice& slice, std::unordered_map<string, TensorSliceSet*>* tensor_slices) argument
[all...]
/external/jsilver/src/com/google/streamhtmlparser/util/
H A DJavascriptTokenBuffer.java206 return slice(position + 1, end);
210 * Returns a slice of the buffer delimited by the given indices.
213 * slice to copy. If the start argument extends beyond the beginning
214 * of the buffer, the slice will only contain characters
222 public String slice(int start, int end) { method in class:JavascriptTokenBuffer
/external/mesa3d/src/gallium/drivers/ilo/
H A Dilo_render_gen8.c152 const struct ilo_texture_slice *slice = local
158 clear_params = slice->clear_value;
H A Dilo_resource.h44 * the new writer. When set in slice flags (ilo_texture_slice::flags),
56 * never set in slice flags.
65 * When set in resolve flags, the new writer will clear. When set in slice
66 * flags, the slice has been cleared to ilo_texture_slice::clear_value.
72 * A 3D image slice, cube face, or array layer.
146 unsigned level, unsigned slice)
149 assert(slice < ((tex->base.target == PIPE_TEXTURE_3D) ?
152 return &tex->slices[level][slice];
162 struct ilo_texture_slice *slice = local
165 while (slice <
145 ilo_texture_get_slice(const struct ilo_texture *tex, unsigned level, unsigned slice) argument
178 struct ilo_texture_slice *slice = local
[all...]
/external/mesa3d/src/mesa/drivers/dri/i915/
H A Dintel_tex_copy.c51 GLint dstx, GLint dsty, GLint slice,
71 intelImage->base.Base.Face + slice,
84 GLint xoffset, GLint yoffset, GLint slice,
94 xoffset, yoffset, slice,
102 xoffset, yoffset, slice,
49 intel_copy_texsubimage(struct intel_context *intel, struct intel_texture_image *intelImage, GLint dstx, GLint dsty, GLint slice, struct intel_renderbuffer *irb, GLint x, GLint y, GLsizei width, GLsizei height) argument
82 intelCopyTexSubImage(struct gl_context *ctx, GLuint dims, struct gl_texture_image *texImage, GLint xoffset, GLint yoffset, GLint slice, struct gl_renderbuffer *rb, GLint x, GLint y, GLsizei width, GLsizei height) argument
H A Dintel_tex.c130 GLuint slice,
147 /* intel_miptree_map operates on a unified "slice" number that references the
151 slice = tex_image->Face;
153 intel_miptree_map(intel, mt, tex_image->Level, slice, x, y, w, h, mode,
159 struct gl_texture_image *tex_image, GLuint slice)
166 slice = tex_image->Face;
168 intel_miptree_unmap(intel, mt, tex_image->Level, slice);
128 intel_map_texture_image(struct gl_context *ctx, struct gl_texture_image *tex_image, GLuint slice, GLuint x, GLuint y, GLuint w, GLuint h, GLbitfield mode, GLubyte **map, GLint *stride) argument
158 intel_unmap_texture_image(struct gl_context *ctx, struct gl_texture_image *tex_image, GLuint slice) argument
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dintel_tex_copy.c49 GLint dstx, GLint dsty, GLint slice,
83 int dst_slice = slice + intelImage->base.Base.Face +
105 GLint xoffset, GLint yoffset, GLint slice,
113 if (brw_blorp_copytexsubimage(brw, rb, texImage, slice, x, y,
120 xoffset, yoffset, slice,
128 xoffset, yoffset, slice,
47 intel_copy_texsubimage(struct brw_context *brw, struct intel_texture_image *intelImage, GLint dstx, GLint dsty, GLint slice, struct intel_renderbuffer *irb, GLint x, GLint y, GLsizei width, GLsizei height) argument
103 intelCopyTexSubImage(struct gl_context *ctx, GLuint dims, struct gl_texture_image *texImage, GLint xoffset, GLint yoffset, GLint slice, struct gl_renderbuffer *rb, GLint x, GLint y, GLsizei width, GLsizei height) argument
/external/mesa3d/src/mesa/drivers/dri/r200/
H A Dradeon_tex_copy.c139 GLint xoffset, GLint yoffset, GLint slice,
147 if (slice != 0 || !do_copy_texsubimage(ctx,
157 xoffset, yoffset, slice,
137 radeonCopyTexSubImage(struct gl_context *ctx, GLuint dims, struct gl_texture_image *texImage, GLint xoffset, GLint yoffset, GLint slice, struct gl_renderbuffer *rb, GLint x, GLint y, GLsizei width, GLsizei height) argument
/external/mesa3d/src/mesa/drivers/dri/radeon/
H A Dradeon_tex_copy.c139 GLint xoffset, GLint yoffset, GLint slice,
147 if (slice != 0 || !do_copy_texsubimage(ctx,
157 xoffset, yoffset, slice,
137 radeonCopyTexSubImage(struct gl_context *ctx, GLuint dims, struct gl_texture_image *texImage, GLint xoffset, GLint yoffset, GLint slice, struct gl_renderbuffer *rb, GLint x, GLint y, GLsizei width, GLsizei height) argument
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
H A DArrayRef.h113 /// slice(n) - Chop off the first N elements of the array.
114 ArrayRef<T> slice(unsigned N) { function in class:llvm::ArrayRef
119 /// slice(n, m) - Chop off the first N elements of the array, and keep M
121 ArrayRef<T> slice(unsigned N, unsigned M) { function in class:llvm::ArrayRef
/external/tensorflow/tensorflow/core/kernels/
H A Dsave_op_test.cc409 // that the right slice is restored. It is quite tricky to check that the
411 // CopySliceData() return true/false depending on the slice we ask for.
417 // See core/framework/tensor_slice.h for the slice syntax.
420 "2 4 -:0,2", // A 2x2 slice of a 2x4 tensor.
421 "2 4 0,1:2,2", // A 1x2 slice of a 2x4 tensor.
423 "2 3 1,1:2,1" // Another 1x1 slice of a2x3 tensor.
492 // We saved the slice "-:0,2" so we should not be able to read the full
510 // We saved the slice "0,1:2,2" so we should not be able to read the full
528 // We saved the full slice.
569 // and one slice o
627 auto slice = reloaded.Slice(0, 2).flat<int>(); local
633 auto slice = reloaded.Slice(2, 4).flat<int>(); local
[all...]
/external/guava/guava-tests/test/com/google/common/io/
H A DByteSourceTester.java43 * {@code slice()} views in the same way.
75 String name, String desc, boolean slice) {
81 if (slice && bytes.length > 0) {
82 // test a random slice() of the ByteSource
89 suite.addTest(suiteForBytes(sliced, bytes, name + ".slice[int, int]",
195 source.slice(-1, 0);
196 fail("expected IllegalArgumentException for call to slice with offset -1: " + source);
201 source.slice(0, -1);
202 fail("expected IllegalArgumentException for call to slice with length -1: " + source);
74 suiteForBytes(ByteSourceFactory factory, byte[] bytes, String name, String desc, boolean slice) argument
/external/llvm/include/llvm/ADT/
H A DSmallString.h260 StringRef slice(size_t Start, size_t End) const { function in class:llvm::SmallString
261 return str().slice(Start, End);
/external/mesa3d/src/gallium/drivers/freedreno/
H A Dfreedreno_resource.h54 * In either case, the slice represents the per-miplevel information,
59 uint32_t offset; /* offset of first layer in slice */
61 uint32_t size0; /* size of first layer in slice */
146 struct fd_resource_slice *slice = fd_resource_slice(rsc, level); local
149 offset = slice->offset + (rsc->layer_size * layer);
151 offset = slice->offset + (slice->size0 * layer);
/external/mesa3d/src/mesa/swrast/
H A Ds_texture.c181 GLuint slice, GLuint x, GLuint y, GLuint w, GLuint h)
191 assert(slice < texture_slices(texImage));
195 * Map a 2D slice of a texture image into user space.
200 * \param slice the 3D image slice or array texture slice
209 GLuint slice,
220 check_map_teximage(texImage, slice, x, y, w, h);
244 map = swImage->ImageSlices[slice];
256 GLuint slice)
180 check_map_teximage(const struct gl_texture_image *texImage, GLuint slice, GLuint x, GLuint y, GLuint w, GLuint h) argument
207 _swrast_map_teximage(struct gl_context *ctx, struct gl_texture_image *texImage, GLuint slice, GLuint x, GLuint y, GLuint w, GLuint h, GLbitfield mode, GLubyte **mapOut, GLint *rowStrideOut) argument
254 _swrast_unmap_teximage(struct gl_context *ctx, struct gl_texture_image *texImage, GLuint slice) argument
[all...]

Completed in 684 milliseconds

12345678