Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions include/caffe/net.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,15 @@ namespace caffe {
template <typename Dtype>
class Net {
public:
explicit Net(const NetParameter& param);
explicit Net(const string& param_file, Phase phase);
explicit Net(const NetParameter& param,
const size_t force_input_count = 0);
explicit Net(const string& param_file, Phase phase,
const size_t force_input_count = 0);
virtual ~Net() {}

/// @brief Initialize a network with a NetParameter.
void Init(const NetParameter& param);
void Init(const NetParameter& param,
const size_t force_input_count = 0);

/**
* @brief Run Forward with the input Blob%s already fed separately.
Expand Down Expand Up @@ -256,6 +259,8 @@ class Net {
/// Whether to compute and display debug info for the net.
bool debug_info_;

size_t force_input_count_;

DISABLE_COPY_AND_ASSIGN(Net);
};

Expand Down
Loading