当前位置:网站首页>Huawei modelarts training alexnet model
Huawei modelarts training alexnet model
2022-07-01 07:20:00 【Flower boy】
One 、 Reference material
Two 、 Key steps
2.1 Upload Source code To obs
.
|-- dataset # Data sets
| |-- train
| `-- val `-- train
|-- data.py
|-- model.py
`-- train_npu.py # Startup file
2.2 obs Create directory
obs Directory structure
log: Log storage path
output: Training output path

2.3 Create algorithm
Algorithm management
---》 establish
name : Customize
describe : Customize
How it was created : Customize
AI engine :tensorflow_1.15-cann_5.0.3-py_3.7-euler_2.8.3-aarch64
Code directory :/xxx/alexnet/train/
Startup file :/xxx/alexnet/train/train_npu.py
Input data configuration : Dataset path
Mapping name : Customize ( The default can be )
Code path parameters :data_url
Output data configuration : Training output path
Mapping name : Customize ( The default can be )
Code path parameters :train_url
other : The default can be

2.4 Create training assignments
Training management
---》 Training assignment
---》 establish
name : Customize
describe : Customize
Algorithm :
---》 My algorithm
---》 Check the algorithm just created
Training input :
---》data_url:/xxx/alexnet/dataset/
Training output :
---》train_url:/xxx/alexnet/output/
Resource pool : According to the actual demand
The resource type :Ascend
specifications : According to the actual demand
Calculate the number of nodes : According to the actual demand
Job log path :/xxx/alexnet/log/

2.5 Training done

3、 ... and 、FAQ
Q:The input shape of GeOp5_0 is dynamic
File "/home/ma-user/modelarts/user-job-dir/train/train_npu.py", line 114, in main
test_loss, test_acc, summary = sess.run([cost, accuracy, summary_op], feed_dict=val_feed)
File "/home/ma-user/anaconda/lib/python3.7/site-packages/tensorflow_core/python/client/session.py", line 956, in run
run_metadata_ptr)
File "/home/ma-user/anaconda/lib/python3.7/site-packages/tensorflow_core/python/client/session.py", line 1180, in _run
feed_dict_tensor, options, run_metadata)
File "/home/ma-user/anaconda/lib/python3.7/site-packages/tensorflow_core/python/client/session.py", line 1359, in _do_run
run_metadata)
File "/home/ma-user/anaconda/lib/python3.7/site-packages/tensorflow_core/python/client/session.py", line 1384, in _do_call
raise type(e)(node_def, op, message)
tensorflow.python.framework.errors_impl.InternalError: The input shape of GeOp5_0 is dynamic, please ensure that npu option[dynamic_input] is set correctly, for more details please refer to the migration guide.
[[{
{
node GeOp5_0}}]]
The reason for the error :
There are inputs during model training shape Problem of change
terms of settlement :
train_npu.py Add
custom_op.parameter_map["dynamic_input"].b = True
custom_op.parameter_map["dynamic_graph_execute_mode"].s = tf.compat.as_bytes("lazy_recompile")
边栏推荐
- C# 读写自定义的Config文件
- 华泰证券开户是安全可靠的么?怎么开华泰证券账户
- 组件的自定义事件②
- How to draw a product architecture diagram?
- 【电气介数】电气介数及考虑HVDC和FACTS元件的电气介数计算
- Understanding of Turing test and Chinese Room
- ctfshow-web355,356(SSRF)
- Easynvs cloud management platform function reconfiguration: support adding users, modifying information, etc
- Detailed explanation of weback5 basic configuration
- Automated test platform (13): interface automation framework and platform comparison, application scenario analysis and design ideas sharing
猜你喜欢
![[Shenzhen IO] precise Food Scale (some understanding of assembly language)](/img/8c/1e64401e812538d8606df557054355.png)
[Shenzhen IO] precise Food Scale (some understanding of assembly language)

Système de gestion de l'exploitation et de l'entretien, expérience d'exploitation humanisée

为什么这么多人转行产品经理?产品经理发展前景如何?

女生适合学产品经理吗?有什么优势?

LeetCode+ 71 - 75

【LINGO】求解二次规划

Servlet 和 JSP 中的分页

浏览器本地存储

C# Newtonsoft.Json中JObject的使用

ctfshow-web352,353(SSRF)
随机推荐
手机开户选哪个证券公司比较好,哪个更安全
【LINGO】求七个城市最小连线图,使天然气管道价格最低
Subclasses call methods and properties of the parent class with the same name
C语言实现【扫雷游戏】完整版(实现源码)
5G Massive MIMO的概念和优点总结
用手机在指南针上开户靠谱吗?这样有没有什么安全隐患
[lingo] solve quadratic programming
ctfshow-web355,356(SSRF)
為什麼這麼多人轉行產品經理?產品經理發展前景如何?
运维管理系统,人性化操作体验
Solution to the problem that objects in unity2021 scene view cannot be directly selected
ctfshow-web355,356(SSRF)
Operation and maintenance management system, humanized operation experience
微软宣布开源 (GODEL) 语言模型聊天机器人
AI视频智能平台EasyCVR设备录像出现无法播放现象的问题修复
在长城证券上做基金定投安全吗?
Illusory and simple screen raindrop post-processing effect
Do securities account opening affect the security of account opening
Stepsister becomes stepmother, son breaks off relationship with himself, and musk, the world's richest man, why is it so miserable?
【编程强训3】字符串中找出连续最长的数字串+数组中出现次数超过一半的数字