Skip to content

Commit

Permalink
Merge branch 'dev-0.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
GFallasRR committed Jun 5, 2019
2 parents 43eed5c + 509c831 commit e7c6d2d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

# Initialize autoconf.
AC_PREREQ([2.69])
AC_INIT([RidgeRun inference library],[0.1.0],[https://github.com/RidgeRun/r2inference/issues],[r2inference])
AC_INIT([RidgeRun inference library],[0.2.0],[https://github.com/RidgeRun/r2inference/issues],[r2inference])

# Initialize our build utils
RR_INIT
Expand Down
5 changes: 5 additions & 0 deletions r2i/tensorflow/frame.cc
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,11 @@ RuntimeError Frame::GetTensorShape (std::shared_ptr<TF_Graph> pgraph,
return error;
}

/* R2Inference uses a batch size of 1 but some tensors have this value set to
* generic (-1) or greater than 1.
* Batch size set to 1 for general compatibility support. */
(*dims)[0] = 1;

type = TF_OperationOutputType(output);
size = TF_DataTypeSize(type);

Expand Down
5 changes: 5 additions & 0 deletions r2i/tensorflow/prediction.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,11 @@ RuntimeError Prediction::SetTensor (std::shared_ptr<TF_Graph> pgraph,
return error;
}

/* R2Inference uses a batch size of 1 but some tensors have this value set to
* generic (-1) or greater than 1.
* Batch size set to 1 for general compatibility support. */
dims[0] = 1;

TF_DataType type = TF_OperationOutputType(output);
size_t type_size = TF_DataTypeSize(type);
size_t data_size = this->GetRequiredBufferSize (output, dims, num_dims);
Expand Down

0 comments on commit e7c6d2d

Please sign in to comment.