Home
last modified time | relevance | path

Searched refs:Dimension (Results 1 – 25 of 237) sorted by relevance

12345678910

/external/tensorflow/tensorflow/python/framework/
Dtensor_shape_test.py33 dim = tensor_shape.Dimension(12)
36 self.assertEqual(dim, tensor_shape.Dimension(12))
37 self.assertEqual(tensor_shape.Dimension(15),
38 dim + tensor_shape.Dimension(3))
39 self.assertEqual(tensor_shape.Dimension(15), dim + 3)
40 self.assertEqual(tensor_shape.Dimension(15), 3 + dim)
41 self.assertEqual(tensor_shape.Dimension(9), dim - 3)
42 self.assertEqual(tensor_shape.Dimension(1), 13 - dim)
43 self.assertEqual(tensor_shape.Dimension(24),
44 dim * tensor_shape.Dimension(2))
[all …]
Dtensor_shape.py127 if isinstance(dimension, Dimension):
176 return Dimension(None)
182 class Dimension(object): class
195 elif isinstance(value, Dimension):
321 return Dimension(other.value)
323 return Dimension(self._value)
352 return Dimension(None)
354 return Dimension(self._value + other.value)
394 return Dimension(None)
396 return Dimension(self._value - other.value)
[all …]
/external/angle/src/common/
Dvector_utils.h19 template <size_t Dimension, typename Type>
34 template <size_t Dimension, typename Type>
38 using VectorN = Vector<Dimension, Type>;
45 VectorBase(const VectorBase<Dimension, Type2> &other);
53 constexpr size_t size() const { return Dimension; } in size()
89 Type dot(const VectorBase<Dimension, Type> &other) const;
110 Type mData[Dimension];
113 template <size_t Dimension, typename Type>
114 std::ostream &operator<<(std::ostream &ostream, const VectorBase<Dimension, Type> &vector);
181 template <size_t Dimension, typename Type>
[all …]
/external/tflite-support/tensorflow_lite_support/cc/task/vision/core/
Dframe_buffer.h127 struct Dimension { struct
133 bool operator==(const Dimension& other) const { argument
137 bool operator!=(const Dimension& other) const {
141 bool operator>=(const Dimension& other) const {
145 bool operator<=(const Dimension& other) const {
163 Dimension dimension, Format format, in Create() argument
174 Dimension dimension, Format format, in Create()
186 Dimension dimension, Format format, in Create()
197 Dimension dimension, Format format, in Create()
214 FrameBuffer(const std::vector<Plane>& planes, Dimension dimension, in FrameBuffer()
[all …]
/external/tflite-support/tensorflow_lite_support/cc/task/vision/utils/
Dframe_buffer_common_utils.h40 int GetFrameBufferByteSize(FrameBuffer::Dimension dimension,
55 tflite::support::StatusOr<FrameBuffer::Dimension> GetUvPlaneDimension(
56 FrameBuffer::Dimension dimension, FrameBuffer::Format format);
59 FrameBuffer::Dimension GetCropDimension(int x0, int x1, int y0, int y1);
108 const uint8* input, FrameBuffer::Dimension dimension,
114 const uint8* input, FrameBuffer::Dimension dimension,
120 const uint8* input, FrameBuffer::Dimension dimension,
127 FrameBuffer::Format format, FrameBuffer::Dimension dimension,
134 const uint8* buffer, FrameBuffer::Dimension dimension,
Dframe_buffer_utils.h36 int GetBufferByteSize(FrameBuffer::Dimension dimension,
44 FrameBuffer::Dimension from_dimension);
51 FrameBuffer::Dimension from_dimension);
59 FrameBuffer::Dimension from_dimension, int* to_x,
96 FrameBuffer::Dimension crop_dimension, in CropResizeOperation()
97 FrameBuffer::Dimension resize_dimension) in CropResizeOperation()
105 FrameBuffer::Dimension crop_dimension;
106 FrameBuffer::Dimension resize_dimension;
262 FrameBuffer::Dimension GetSize(const FrameBuffer& buffer,
276 FrameBuffer::Dimension dimension,
Dframe_buffer_common_utils.cc38 const uint8* input, FrameBuffer::Dimension dimension, in CreateFromNV12RawBuffer()
49 const uint8* input, FrameBuffer::Dimension dimension, in CreateFromNV21RawBuffer()
92 int GetFrameBufferByteSize(FrameBuffer::Dimension dimension, in GetFrameBufferByteSize()
141 StatusOr<FrameBuffer::Dimension> GetUvPlaneDimension( in GetUvPlaneDimension()
142 FrameBuffer::Dimension dimension, FrameBuffer::Format format) { in GetUvPlaneDimension()
153 return FrameBuffer::Dimension{(dimension.width + 1) / 2, in GetUvPlaneDimension()
161 FrameBuffer::Dimension GetCropDimension(int x0, int x1, int y0, int y1) { in GetCropDimension()
327 const uint8* input, FrameBuffer::Dimension dimension, in CreateFromRgbaRawBuffer()
339 const uint8* input, FrameBuffer::Dimension dimension, in CreateFromRgbRawBuffer()
350 const uint8* input, FrameBuffer::Dimension dimension, in CreateFromGrayRawBuffer()
[all …]
Dframe_buffer_utils.cc95 FrameBuffer::Dimension frame_dimension) { in RotateBoundingBox()
134 const FrameBuffer::Dimension& frame_dimension, in RotateCoordinates()
158 int GetBufferByteSize(FrameBuffer::Dimension dimension, in GetBufferByteSize()
177 FrameBuffer::Dimension from_dimension) { in OrientBoundingBox()
186 FrameBuffer::Dimension to_dimension = from_dimension; in OrientBoundingBox()
205 FrameBuffer::Dimension from_dimension) { in OrientAndDenormalizeBoundingBox()
220 FrameBuffer::Dimension from_dimension, int* to_x, in OrientCoordinates()
231 FrameBuffer::Dimension to_dimension = from_dimension; in OrientCoordinates()
308 FrameBuffer::Dimension FrameBufferUtils::GetSize( in GetSize()
310 FrameBuffer::Dimension dimension = buffer.dimension(); in GetSize()
[all …]
/external/virglrenderer/src/gallium/auxiliary/tgsi/
Dtgsi_parse.c116 if (decl->Declaration.Dimension) { in tgsi_parse_token()
211 if( inst->Dst[i].Register.Dimension ) { in tgsi_parse_token()
212 next_token( ctx, &inst->Dst[i].Dimension ); in tgsi_parse_token()
217 assert( !inst->Dst[i].Dimension.Dimension ); in tgsi_parse_token()
219 if( inst->Dst[i].Dimension.Indirect ) in tgsi_parse_token()
233 if( inst->Src[i].Register.Dimension ) { in tgsi_parse_token()
234 next_token( ctx, &inst->Src[i].Dimension ); in tgsi_parse_token()
239 assert( !inst->Src[i].Dimension.Dimension ); in tgsi_parse_token()
241 if( inst->Src[i].Dimension.Indirect ) in tgsi_parse_token()
Dtgsi_build.c108 declaration.Dimension = 0; in tgsi_default_declaration()
143 declaration.Dimension = dimension; in tgsi_build_declaration()
413 full_decl->Declaration.Dimension, in tgsi_build_full_declaration()
433 if (full_decl->Declaration.Dimension) { in tgsi_build_full_declaration()
831 src_register.Dimension = 0; in tgsi_default_src_register()
870 src_register.Dimension = dimension; in tgsi_build_src_register()
922 dimension.Dimension = 0; in tgsi_default_dimension()
936 full_src_register.Dimension = tgsi_default_dimension(); in tgsi_default_full_src_register()
952 dimension.Dimension = 0; in tgsi_build_dimension()
969 dst_register.Dimension = 0; in tgsi_default_dst_register()
[all …]
/external/tensorflow/tensorflow/core/kernels/
Dconv_2d_gpu.h129 struct Dimension : Array<int, IndexCount, 1> {
131 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Dimension() : Base() {}
132 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Dimension(int a0) : Base(a0) {}
133 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Dimension(int a0, int a1)
135 EIGEN_DEVICE_FUNC EIGEN_STRONG_INLINE Dimension(int a0, int a1, int a2)
137 EIGEN_STRONG_INLINE Dimension(const std::array<int, IndexCount>& array)
155 const Index<IndexCount>& index, const Dimension<IndexCount>& dims) {
166 int index, const Dimension<IndexCount>& dims) {
187 Dimension<3> input_dims,
189 Dimension<3> output_dims;
[all …]
/external/eigen/test/
Dumeyama.cpp120 template<typename Scalar, int Dimension>
124 typedef Matrix<Scalar, Dimension+1, Dynamic> MatrixX; in run_fixed_size_test()
125 typedef Matrix<Scalar, Dimension+1, Dimension+1> HomMatrix; in run_fixed_size_test()
126 typedef Matrix<Scalar, Dimension, Dimension> FixedMatrix; in run_fixed_size_test()
127 typedef Matrix<Scalar, Dimension, 1> FixedVector; in run_fixed_size_test()
129 const int dim = Dimension; in run_fixed_size_test()
148 Block<MatrixX, Dimension, Dynamic> src_block(src,0,0,dim,num_elements); in run_fixed_size_test()
149 Block<MatrixX, Dimension, Dynamic> dst_block(dst,0,0,dim,num_elements); in run_fixed_size_test()
/external/mesa3d/src/gallium/auxiliary/tgsi/
Dtgsi_parse.c116 if (decl->Declaration.Dimension) { in tgsi_parse_token()
213 if (inst->Dst[i].Register.Dimension) { in tgsi_parse_token()
214 next_token( ctx, &inst->Dst[i].Dimension ); in tgsi_parse_token()
219 assert( !inst->Dst[i].Dimension.Dimension ); in tgsi_parse_token()
221 if (inst->Dst[i].Dimension.Indirect) in tgsi_parse_token()
235 if (inst->Src[i].Register.Dimension) { in tgsi_parse_token()
236 next_token( ctx, &inst->Src[i].Dimension ); in tgsi_parse_token()
241 assert( !inst->Src[i].Dimension.Dimension ); in tgsi_parse_token()
243 if (inst->Src[i].Dimension.Indirect) in tgsi_parse_token()
Dtgsi_build.c108 declaration.Dimension = 0; in tgsi_default_declaration()
143 declaration.Dimension = dimension; in tgsi_build_declaration()
425 full_decl->Declaration.Dimension, in tgsi_build_full_declaration()
445 if (full_decl->Declaration.Dimension) { in tgsi_build_full_declaration()
847 src_register.Dimension = 0; in tgsi_default_src_register()
886 src_register.Dimension = dimension; in tgsi_build_src_register()
938 dimension.Dimension = 0; in tgsi_default_dimension()
952 full_src_register.Dimension = tgsi_default_dimension(); in tgsi_default_full_src_register()
968 dimension.Dimension = 0; in tgsi_build_dimension()
985 dst_register.Dimension = 0; in tgsi_default_dst_register()
[all …]
/external/eigen/unsupported/Eigen/src/Splines/
DSplineFwd.h29 enum { Dimension = _Dim /*!< The spline curve's dimension. */ };
35 …enum { DerivativeMemoryLayout = Dimension==1 ? RowMajor : ColMajor /*!< The derivative type's memo…
44 …typedef Array<Scalar,Dimension,Dynamic,DerivativeMemoryLayout,Dimension,NumOfDerivativesAtCompileT…
47 typedef Array<Scalar,Dimension,1> PointType;
56 typedef Array<Scalar,Dimension,Dynamic> ControlPointVectorType;
DSpline.h39 enum { Dimension = _Dim /*!< The spline curve's dimension. */ }; enumerator
66 , m_ctrls(ControlPointVectorType::Zero(Dimension,(Degree==Dynamic ? 1 : Degree+1))) in Spline()
88 Spline(const Spline<Scalar, Dimension, OtherDegree>& spline) : in Spline() argument
305 const Replicate<BasisVectorType,Dimension,1> ctrl_weights(basis_funcs); in operator()
306 …const Block<const ControlPointVectorType,Dimension,Order> ctrl_pts(ctrls(),0,span-p,Dimension,p+1); in operator()
315 enum { Dimension = SplineTraits<SplineType>::Dimension }; in derivativesImpl() enumerator
328 der.resize(Dimension,n+1); in derivativesImpl()
336 … const Replicate<BasisDerivativeRowXpr,Dimension,1> ctrl_weights( basis_func_ders.row(der_order) ); in derivativesImpl()
337 …const Block<const ControlPointVectorType,Dimension,Order> ctrl_pts(spline.ctrls(),0,span-p,Dimensi… in derivativesImpl()
/external/dynamic_depth/internal/dynamic_depth/
Ddimension.h8 struct Dimension { struct
9 Dimension(int w, int h) : width(w), height(h) {} in Dimension() function
13 inline bool operator==(const Dimension& other) const { argument
17 inline bool operator!=(const Dimension& other) const {
/external/llvm-project/flang/runtime/
Ddescriptor.h44 class Dimension {
51 Dimension &SetBounds(SubscriptValue lower, SubscriptValue upper) { in SetBounds()
56 Dimension &SetByteStride(SubscriptValue bytes) { in SetByteStride()
197 Dimension &GetDimension(int dim) { in GetDimension()
198 return *reinterpret_cast<Dimension *>(&raw_.dim[dim]); in GetDimension()
200 const Dimension &GetDimension(int dim) const { in GetDimension()
201 return *reinterpret_cast<const Dimension *>(&raw_.dim[dim]); in GetDimension()
206 const Dimension &dimension{GetDimension(dim)}; in SubscriptByteOffset()
273 std::size_t bytes{sizeof(Descriptor) - sizeof(Dimension)};
274 bytes += rank * sizeof(Dimension);
[all …]
/external/mesa3d/src/gallium/drivers/virgl/
Dvirgl_tgsi.c47 if (decl->Declaration.Dimension) { in virgl_tgsi_transform_declaration()
49 decl->Declaration.Dimension = 0; in virgl_tgsi_transform_declaration()
97 inst->Src[i].Register.Dimension && in virgl_tgsi_transform_instruction()
98 inst->Src[i].Dimension.Index == 0) in virgl_tgsi_transform_instruction()
99 inst->Src[i].Register.Dimension = 0; in virgl_tgsi_transform_instruction()
/external/icu/icu4j/demos/src/com/ibm/icu/dev/demo/impl/
DDemoApplet.java14 import java.awt.Dimension;
26 protected Dimension getDefaultFrameSize(DemoApplet applet, Frame f) { in getDefaultFrameSize()
27 return new Dimension(700, 550); in getDefaultFrameSize()
58 Dimension d = getDefaultFrameSize(this, demoFrame); in showDemo()
/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dreadability-magic-numbers.cpp162 struct Dimension { struct
166 explicit Dimension(T xval, T yval) noexcept : x{xval}, y{yval} { in Dimension() function
173 Dimension<T> size;
176 …Rectangle(Point<T> origin_, Dimension<T> size_, T rotation_ = 0) noexcept : origin{origin_}, size{… in Rectangle()
184 …e<double> mandelbrotCanvas{geometry::Point<double>{-2.5, -1}, geometry::Dimension<double>{3.5, 2}}; argument
/external/tensorflow/tensorflow/core/framework/
Dshape_inference.h41 class Dimension {
43 Dimension();
44 Dimension(int64 value);
45 ~Dimension() {} in ~Dimension()
51 TF_DISALLOW_COPY_AND_ASSIGN(Dimension);
61 DimensionHandle(const Dimension* dim) { ptr_ = dim; } in DimensionHandle()
63 const Dimension* operator->() const { return ptr_; }
66 const Dimension* ptr_ = nullptr;
661 all_dims_.push_back(new Dimension(d.val)); in MakeDim()
668 std::vector<Dimension*> all_dims_; // values are owned.
[all …]
/external/apache-commons-bcel/src/main/java/org/apache/bcel/verifier/
DVerifierAppFrame.java23 import java.awt.Dimension;
113 this.setSize(new Dimension(708, 451)); in jbInit()
115 jPanel1.setMinimumSize(new Dimension(100, 100)); in jbInit()
116 jPanel1.setPreferredSize(new Dimension(100, 100)); in jbInit()
120 jPanel3.setMinimumSize(new Dimension(200, 100)); in jbInit()
121 jPanel3.setPreferredSize(new Dimension(400, 400)); in jbInit()
123 messagesPanel.setMinimumSize(new Dimension(100, 100)); in jbInit()
125 jPanel2.setMinimumSize(new Dimension(200, 100)); in jbInit()
129 messagesScrollPane.setPreferredSize(new Dimension(10, 10)); in jbInit()
139 jScrollPane3.setPreferredSize(new Dimension(100, 100)); in jbInit()
[all …]
DGraphicalVerifier.java20 import java.awt.Dimension;
47 final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize(); in GraphicalVerifier()
48 final Dimension frameSize = frame.getSize(); in GraphicalVerifier()
/external/antlr/gunit/src/main/java/org/antlr/gunit/swingui/
DStatusBarController.java30 import java.awt.Dimension;
49 labelText.setPreferredSize(new Dimension(300, 20)); in initComponents()
51 progress.setPreferredSize(new Dimension(100, 15)); in initComponents()

12345678910