Skip to content

Commit

Permalink
comment++
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Jun 11, 2019
1 parent 81be8c8 commit bade132
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 4 additions & 2 deletions src/layer.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,12 @@ class Layer
// return 0 if success
virtual int load_model(const ModelBin& mb);

//
// layer implementation specific setup
// return 0 if success
virtual int create_pipeline(const Option& opt = Option());

//
// layer implementation specific clean
// return 0 if success
virtual int destroy_pipeline(const Option& opt = Option());

public:
Expand Down
6 changes: 3 additions & 3 deletions src/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@ class Net
~Net();

public:
// option
// option can be changed before loading
Option opt;

#if NCNN_VULKAN

// set gpu device by index
void set_vulkan_device(int device_index);

// set gpu device by device handle, no owner transfer
void set_vulkan_device(const VulkanDevice* vkdev);

#endif // NCNN_VULKAN

#if NCNN_STRING
Expand Down

0 comments on commit bade132

Please sign in to comment.