MCPcopy Create free account
hub / github.com/dmlc/parameter_server / init

Method init

src/data/stream_reader.h:79–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

77
78template<typename V>
79void StreamReader<V>::init(const DataConfig& data) {
80 data_ = data;
81 if (data_.format() == DataConfig::TEXT) {
82 text_parser_.init(data_.text(), data_.ignore_feature_group());
83 }
84 max_num_files_ = data_.file_size();
85 if (data_.max_num_files_per_worker() >= 0) {
86 max_num_files_ = std::min(max_num_files_, data_.max_num_files_per_worker());
87 }
88 openNextFile();
89}
90
91
92template<typename V>

Callers

nothing calls this directly

Calls 5

textMethod · 0.80
ignore_feature_groupMethod · 0.80
file_sizeMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected