Fix a bug in ExternalDataInfo

This commit is contained in:
Changming Sun 2019-03-13 10:49:36 -07:00
parent cfb08c4848
commit ab734ec5a6

View file

@ -11,10 +11,8 @@ namespace onnxruntime {
class ExternalDataInfo {
private:
std::basic_string<ORTCHAR_T> rel_path_;
//-1 means doesn't exist
ptrdiff_t offset_;
//-1 means doesn't exist
ptrdiff_t length_;
ptrdiff_t offset_ = 0;
ptrdiff_t length_ = 0;
std::string checksum_;
public: