Removed warning from the file.

Fixed warning from the file.
This commit is contained in:
Amit Srivastava 2019-03-20 09:11:06 +05:30
parent 36b42528ec
commit 4f2a3ae9e6

View File

@ -142,7 +142,7 @@ class BaseFullyConnectedOpModel : public SingleOpModel {
FullyConnectedOptionsWeightsFormat_DEFAULT) FullyConnectedOptionsWeightsFormat_DEFAULT)
: batches_(batches), units_(units) { : batches_(batches), units_(units) {
int total_input_size = 1; int total_input_size = 1;
for (int i = 0; i < input.shape.size(); ++i) { for (size_t i = 0; i < input.shape.size(); ++i) {
total_input_size *= input.shape[i]; total_input_size *= input.shape[i];
} }
input_size_ = total_input_size / batches_; input_size_ = total_input_size / batches_;
@ -278,7 +278,7 @@ class HybridFullyConnectedOpModel : public SingleOpModel {
const TensorData& output = {TensorType_FLOAT32}) const TensorData& output = {TensorType_FLOAT32})
: batches_(batches), units_(units) { : batches_(batches), units_(units) {
int total_input_size = 1; int total_input_size = 1;
for (int i = 0; i < input.shape.size(); ++i) { for (size_t i = 0; i < input.shape.size(); ++i) {
total_input_size *= input.shape[i]; total_input_size *= input.shape[i];
} }
input_size_ = total_input_size / batches_; input_size_ = total_input_size / batches_;