File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed
Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff 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
5860public:
Original file line number Diff line number Diff line change @@ -38,15 +38,15 @@ class Net
3838 ~Net ();
3939
4040public:
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
You can’t perform that action at this time.
0 commit comments