Home
last modified time | relevance | path

Searched refs:shape (Results 1 - 25 of 81) sorted by relevance

1234

/foundation/ai/neural_network_runtime/frameworks/native/neural_network_core/
H A Dtensor_desc.cpp92 OH_NN_ReturnCode TensorDesc::GetShape(int32_t** shape, size_t* shapeNum) const in GetShape() argument
94 if (shape == nullptr) { in GetShape()
95 LOGE("GetShape failed, shape is nullptr."); in GetShape()
98 if (*shape != nullptr) { in GetShape()
99 LOGE("GetShape failed, *shape is not nullptr."); in GetShape()
106 *shape = const_cast<int32_t*>(m_shape.data()); in GetShape()
111 OH_NN_ReturnCode TensorDesc::SetShape(const int32_t* shape, size_t shapeNum) in SetShape() argument
113 if (shape == nullptr) { in SetShape()
114 LOGE("SetShape failed, shape is nullptr."); in SetShape()
123 m_shape.emplace_back(shape[ in SetShape()
[all...]
H A Dtensor_desc.h36 OH_NN_ReturnCode GetShape(int32_t** shape, size_t* shapeNum) const;
37 OH_NN_ReturnCode SetShape(const int32_t* shape, size_t shapeNum);
H A Dneural_network_core.cpp883 NNRT_API OH_NN_ReturnCode OH_NNTensorDesc_SetShape(NN_TensorDesc *tensorDesc, const int32_t *shape, size_t shapeLength) in OH_NNTensorDesc_SetShape() argument
889 if (shape == nullptr) { in OH_NNTensorDesc_SetShape()
890 LOGE("OH_NNTensorDesc_SetShape failed, shape is nullptr."); in OH_NNTensorDesc_SetShape()
898 return tensorDescImpl->SetShape(shape, shapeLength); in OH_NNTensorDesc_SetShape()
902 int32_t **shape, in OH_NNTensorDesc_GetShape()
909 if (shape == nullptr) { in OH_NNTensorDesc_GetShape()
910 LOGE("OH_NNTensorDesc_GetShape failed, shape is nullptr."); in OH_NNTensorDesc_GetShape()
913 if (*shape != nullptr) { in OH_NNTensorDesc_GetShape()
914 LOGE("OH_NNTensorDesc_GetShape failed, *shape is not nullptr."); in OH_NNTensorDesc_GetShape()
923 return tensorDescImpl->GetShape(shape, shapeLengt in OH_NNTensorDesc_GetShape()
901 OH_NNTensorDesc_GetShape(const NN_TensorDesc *tensorDesc, int32_t **shape, size_t *shapeLength) OH_NNTensorDesc_GetShape() argument
1459 OH_NNExecutor_GetOutputShape(OH_NNExecutor *executor, uint32_t outputIndex, int32_t **shape, uint32_t *shapeLength) OH_NNExecutor_GetOutputShape() argument
[all...]
H A Dexecutor.h40 virtual OH_NN_ReturnCode GetOutputShape(uint32_t outputIndex, int32_t** shape, uint32_t* shapeNum) const = 0;
/foundation/arkui/ace_engine/frameworks/core/components/form/resource/
H A Dform_request_data.h44 int32_t shape = -1; member
50 << index << temporary << shape; in ToString() local
64 shape == formInfo.shape; in operator ==()
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/chart/29/
H A Dindex.js37 shape: "circle",
47 shape: "aaa",
58 shape: "circle",
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/chart/30/
H A Dindex.js49 shape: "circle",
55 shape: "circle",
90 shape: "circle",
/foundation/ai/neural_network_runtime/test/unittest/components/nn_tensor/
H A Dnn_tensor_test.cpp294 int32_t* shape = &index; in HWTEST_F() local
295 desc.SetShape(shape, shapeNum); in HWTEST_F()
397 int32_t* shape = &index; in HWTEST_F() local
398 desc.SetShape(shape, shapeNum); in HWTEST_F()
462 int32_t* shape = &index; in HWTEST_F() local
463 desc.SetShape(shape, shapeNum); in HWTEST_F()
531 int32_t* shape = &index; in HWTEST_F() local
532 desc.SetShape(shape, shapeNum); in HWTEST_F()
598 int32_t* shape = &index; in HWTEST_F() local
599 desc.SetShape(shape, shapeNu in HWTEST_F()
627 int32_t* shape = &index; HWTEST_F() local
778 int32_t* shape = &index; HWTEST_F() local
809 int32_t* shape = &index; HWTEST_F() local
840 int32_t* shape = &index; HWTEST_F() local
871 int32_t* shape = &index; HWTEST_F() local
902 int32_t* shape = &index; HWTEST_F() local
1079 int32_t* shape = &index; HWTEST_F() local
1107 int32_t* shape = &index; HWTEST_F() local
1138 int32_t* shape = &index; HWTEST_F() local
1173 int32_t* shape = &index; HWTEST_F() local
1252 int32_t* shape = &index; HWTEST_F() local
1282 int32_t* shape = &index; HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/particle/
H A Dparticle_model.h33 ParticleDisturbanceShapeType shape = ParticleDisturbanceShapeType::RECT; member
43 return !(NearEqual(strength, data.strength) && shape == data.shape && size[0] == data.size[0] && in operator !=()
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/
H A Dnntensor.cpp345 int32_t* shape = nullptr; in CheckDimRanges() local
347 auto ret = m_tensorDesc->GetShape(&shape, &shapeSize); in CheckDimRanges()
349 LOGE("NNTensor2_0::CheckInputDimRanges failed, failed to get shape from desc."); in CheckDimRanges()
354 if (shape[j] < 0) { in CheckDimRanges()
355 LOGE("Dimension %{public}zu is %{public}d.", j, shape[j]); in CheckDimRanges()
358 uint32_t dim = static_cast<uint32_t>(shape[j]); in CheckDimRanges()
H A Dhdi_prepared_model_v2_1.cpp138 // convert shape in TransIOTensor()
139 int32_t* shape = nullptr; in TransIOTensor() local
141 ret = nnTensorDesc->GetShape(&shape, &shapeNum); in TransIOTensor()
143 LOGE("TransIOTensor failed, failed to get shape from desc."); in TransIOTensor()
148 ioTensor.dimensions.emplace_back(shape[i]); in TransIOTensor()
H A Dhdi_prepared_model_v2_0.cpp138 // convert shape in TransIOTensor()
139 int32_t* shape = nullptr; in TransIOTensor() local
141 ret = nnTensorDesc->GetShape(&shape, &shapeNum); in TransIOTensor()
143 LOGE("TransIOTensor failed, failed to get shape from desc."); in TransIOTensor()
148 ioTensor.dimensions.emplace_back(shape[i]); in TransIOTensor()
H A Dhdi_prepared_model_v1_0.cpp137 // convert shape in TransIOTensor()
138 int32_t* shape = nullptr; in TransIOTensor() local
140 ret = nnTensorDesc->GetShape(&shape, &shapeNum); in TransIOTensor()
142 LOGE("TransIOTensor failed, failed to get shape from desc."); in TransIOTensor()
147 ioTensor.dimensions.emplace_back(shape[i]); in TransIOTensor()
H A Dnn_tensor.cpp181 int32_t* shape {nullptr}; in BuildFromTensorDesc()
183 returnCode = tensorDescImpl->GetShape(&shape, &shapeNum); in BuildFromTensorDesc()
185 LOGE("BuildFromTensorDesc failed, error happened when get shape."); in BuildFromTensorDesc()
188 std::vector<int32_t> dimensions(shape, shape + shapeNum); in BuildFromTensorDesc()
255 // If tensor has dynamic shape, m_elementCount and m_dataLength take 0. in ValidateDimensions()
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnode_slider_modifier.cpp407 auto shape = AceType::MakeRefPtr<ShapeRect>(); in SetSliderBlockShape() local
413 shape->SetWidth(width); in SetSliderBlockShape()
414 shape->SetHeight(height); in SetSliderBlockShape()
415 shape->SetRadiusWidth(radiusWidth); in SetSliderBlockShape()
416 shape->SetRadiusHeight(radiusHeight); in SetSliderBlockShape()
417 SliderModelNG::SetBlockShape(frameNode, shape); in SetSliderBlockShape()
420 auto shape = AceType::MakeRefPtr<Circle>(); in SetSliderBlockShape() local
424 shape->SetWidth(width); in SetSliderBlockShape()
425 shape->SetHeight(height); in SetSliderBlockShape()
426 SliderModelNG::SetBlockShape(frameNode, shape); in SetSliderBlockShape()
429 auto shape = AceType::MakeRefPtr<Ellipse>(); SetSliderBlockShape() local
[all...]
/foundation/ai/neural_network_runtime/interfaces/kits/c/neural_network_runtime/
H A Dneural_network_core.h367 * The {@link NN_TensorDesc} describes various tensor attributes, such as name/data type/shape/format, etc.\n
478 * @brief Sets the shape of a {@link NN_TensorDesc}.
480 * After the {@link NN_TensorDesc} instance is created, call this method to set the tensor shape. \n
482 * if <b>tensorDesc</b> or <b>shape</b> is a null pointer, or <b>shapeLength</b> is 0,
486 * @param shape The shape list of the tensor that needs to be set.
487 * @param shapeLength The length of the shape list that needs to be set.
494 OH_NN_ReturnCode OH_NNTensorDesc_SetShape(NN_TensorDesc *tensorDesc, const int32_t *shape, size_t shapeLength);
497 * @brief Gets the shape of a {@link NN_TensorDesc}.
499 * Call this method to obtain the shape o
[all...]
/foundation/graphic/graphic_3d/3d_widget_adapter/core/src/lume/
H A Dlume_common.cpp339 for (auto shape = shapes_.begin(); shape != shapes_.end();) { in UpdateGeometries()
340 auto find = std::find_if(shapes.begin(), shapes.end(), [&shape](const std::shared_ptr<Geometry>& sNew) { in UpdateGeometries()
341 return (*shape)->GetName() == sNew->GetName(); in UpdateGeometries()
344 shape = shapes_.erase(shape); in UpdateGeometries()
347 shape++; in UpdateGeometries()
1200 std::shared_ptr<Geometry>& shape, CORE3D_NS::INodeSystem& nodeSystem) in DestroyNode()
1203 auto shapeNode = sceneNode->LookupNodeByName(shape->GetName().c_str()); in DestroyNode()
1207 WIDGET_LOGW("Failed to remove: %s", shape in DestroyNode()
1199 DestroyNode(CORE_NS::Entity& sceneEntity, std::shared_ptr<Geometry>& shape, CORE3D_NS::INodeSystem& nodeSystem) DestroyNode() argument
1246 UpdateNodePosition(CORE_NS::Entity& sceneEntity, std::shared_ptr<Geometry>& shape, CORE3D_NS::INodeSystem& nodeSystem) UpdateNodePosition() argument
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dmodel_view_impl.cpp90 void ModelViewImpl::AddGeometry(const RefPtr<OHOS::Render3D::SVGeometry>& shape) in AddGeometry() argument
92 GET_COMPONENT_OR_RETURN()->AddGeometry(shape); in AddGeometry()
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_button_ffi.cpp141 void FfiOHOSAceFrameworkButtonSetType(int32_t shape) in FfiOHOSAceFrameworkButtonSetType() argument
143 if (!Utils::CheckParamsValid(shape, BUTTON_TYPES.size())) { in FfiOHOSAceFrameworkButtonSetType()
147 ButtonModel::GetInstance()->SetType(static_cast<int>(BUTTON_TYPES[shape])); in FfiOHOSAceFrameworkButtonSetType()
H A Dcj_button_ffi.h40 CJ_EXPORT void FfiOHOSAceFrameworkButtonSetType(int32_t shape);
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/
H A Dskia_canvas.cpp196 bool SkiaCanvas::AddSdfPara(SkRuntimeShaderBuilder& builder, const SDFShapeBase& shape) in AddSdfPara() argument
198 std::vector<float> para = shape.GetPara(); in AddSdfPara()
199 std::vector<float> transPara = shape.GetTransPara(); in AddSdfPara()
220 std::vector<float> color = shape.GetColorPara(); in AddSdfPara()
231 builder.uniform("sdfsize") = shape.GetSize(); in AddSdfPara()
232 builder.uniform("filltype") = shape.GetFillType(); in AddSdfPara()
233 builder.uniform("translatex") = shape.GetTranslateX(); in AddSdfPara()
234 builder.uniform("translatey") = shape.GetTranslateY(); in AddSdfPara()
238 void SkiaCanvas::DrawSdf(const SDFShapeBase& shape) in DrawSdf() argument
240 std::string shaderString = shape in DrawSdf()
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_form.cpp70 JSRef<JSVal> shape = obj->GetProperty("shape"); in Create() local
101 if (!shape->IsNull() && !shape->IsEmpty()) { in Create()
102 formInfo.shape = shape->ToNumber<int32_t>(); in Create()
/foundation/arkui/ace_engine/frameworks/core/components/scene_viewer/
H A Dscene_viewer_component.h181 void AddGeometry(const RefPtr<OHOS::Render3D::SVGeometry>& shape) in AddGeometry() argument
183 shapes_.push_back(shape); in AddGeometry()
/foundation/arkui/ace_engine/test/unittest/core/pattern/particle/
H A Dparticle_test_ng.cpp155 disTwo.shape = static_cast<ParticleDisturbanceShapeType>(3); // 3 is not a valid ParticleDisturbanceShapeType. in HWTEST_F()
156 disThree.shape = ParticleDisturbanceShapeType::ELLIPSE; in HWTEST_F()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/
H A Dextension_form_profile.cpp381 for (const auto &shape: form.supportShapes) { in GetSupportShapes()
384 if (SHAPE_MAP_KEY[i] == shape) break; in GetSupportShapes()
397 for (const auto &shape: supportShapeSet) { in GetSupportShapes()
398 info.supportShapes.emplace_back(shape); in GetSupportShapes()

Completed in 17 milliseconds

1234