Skip to content

Commit bade132

Browse files
committed
comment++
1 parent 81be8c8 commit bade132

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/layer.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,12 @@ class Layer
4949
// return 0 if success
5050
virtual int load_model(const ModelBin& mb);
5151

52-
//
52+
// layer implementation specific setup
53+
// return 0 if success
5354
virtual int create_pipeline(const Option& opt = Option());
5455

55-
//
56+
// layer implementation specific clean
57+
// return 0 if success
5658
virtual int destroy_pipeline(const Option& opt = Option());
5759

5860
public:

src/net.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ class Net
3838
~Net();
3939

4040
public:
41-
// option
41+
// option can be changed before loading
4242
Option opt;
4343

4444
#if NCNN_VULKAN
45-
45+
// set gpu device by index
4646
void set_vulkan_device(int device_index);
4747

48+
// set gpu device by device handle, no owner transfer
4849
void set_vulkan_device(const VulkanDevice* vkdev);
49-
5050
#endif // NCNN_VULKAN
5151

5252
#if NCNN_STRING

0 commit comments

Comments
 (0)