Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Commit aafc563

Browse files
committed
remove path
1 parent aa241ee commit aafc563

4 files changed

+5
-5
lines changed

examples/cuda/example_nv_cnn_net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ int main(int argc, const char** argv) {
1515
Graph<NV, AK_FLOAT, Precision::FP32> graph;
1616

1717
/*load model from file to init the graph*/
18-
auto status = graph.load("/home/public/anakin-models/anakin_models/Resnet50/Resnet50.anakin.bin");
18+
auto status = graph.load("Resnet50.anakin.bin");
1919
if (!status) {
2020
LOG(FATAL) << " [ERROR] " << status.info();
2121
}

examples/cuda/example_nv_cnn_net_multi_thread.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ using namespace anakin::saber;
1616
int main(int argc, const char** argv) {
1717

1818
/*init works object by model path and thread pool size*/
19-
Worker<NV, AK_FLOAT, Precision::FP32> workers("/home/public/anakin-models/anakin_models/Resnet50/Resnet50.anakin.bin", 10);
19+
Worker<NV, AK_FLOAT, Precision::FP32> workers("Resnet50.anakin.bin", 10);
2020
workers.register_inputs({"input_0"});
2121
workers.register_outputs({"prob_out"});
2222
/*set input shape*/

examples/example_introduction_cn.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Anakin目前只支持NCHW的格式
77
- 将模型的的path设置为anakin模型的路径,初始化NV平台的图对象。 anakin模型可以通过转换器转化caffe或fluid的模型得到
88
```cpp
99
Graph<NV, AK_FLOAT, Precision::FP32> graph;
10-
auto status = graph.load("/home/public/anakin-models/anakin_models/Resnet50/Resnet50.anakin.bin");
10+
auto status = graph.load("Resnet50.anakin.bin");
1111
```
1212

1313
- 根据模型设置网络图的输入尺寸,进行图优化
@@ -68,7 +68,7 @@ h_tensor_in_p->set_seq_offset({0,10,15,30});
6868
整体流程与在NV的GPU上运行CNN模型相似,不同之处如下:
6969
- 用模型地址和线程池大小初始化worker对象,注册输入输出,启动线程池
7070
```cpp
71-
Worker<NV, AK_FLOAT, Precision::FP32> workers("/home/public/anakin-models/anakin_models/Resnet50/Resnet50.anakin.bin", 10);
71+
Worker<NV, AK_FLOAT, Precision::FP32> workers("Resnet50.anakin.bin", 10);
7272
workers.register_inputs({"input_0"});
7373
workers.register_outputs({"prob_out"});
7474
workers.Reshape("input_0", {1, 3, 224, 224});

examples/x86/example_x86_rnn_net.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ int main(int argc, const char** argv) {
1515
Graph<X86, AK_FLOAT, Precision::FP32> graph;
1616

1717
/*load model from file to init the graph*/
18-
auto status = graph.load("/home/liujunjie/macbuild/models/language_model/anakin/language_model.anakin2.bin");
18+
auto status = graph.load("language_model.anakin2.bin");
1919
if (!status) {
2020
LOG(FATAL) << " [ERROR] " << status.info();
2121
}

0 commit comments

Comments
 (0)