From: Amy Yang Date: Fri, 1 Mar 2019 21:53:11 +0000 (-0800) Subject: add command line option to use hive filler; add README (#17619) X-Git-Tag: accepted/tizen/6.5/unified/20211028.231830~1013 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c2c32340a4a8a258c97665a5cf2d2054f06cf0f6;p=platform%2Fupstream%2Fpytorch.git add command line option to use hive filler; add README (#17619) Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/17619 --filler hive --iter -1 will let debugger exhaust all batches from a hive partition before exiting. add README that summarizes command line options and usage. Reviewed By: yinghai Differential Revision: D14220166 fbshipit-source-id: daa23b7e8a9184481c6d7b67acf1599e5c99d74a --- diff --git a/caffe2/predictor/emulator/data_filler.h b/caffe2/predictor/emulator/data_filler.h index fa8f584..a540e4a 100644 --- a/caffe2/predictor/emulator/data_filler.h +++ b/caffe2/predictor/emulator/data_filler.h @@ -31,7 +31,9 @@ class Filler { for (const auto& item : *input_data) { bytes += item.nbytes(); } - CAFFE_ENFORCE(bytes > 0, "input bytes should be positive"); + if (bytes == 0) { + LOG(WARNING) << "0 input bytes filled"; + } return bytes; }