Skip to content

Commit

Permalink
Remove obsolete const_cast's.
Browse files Browse the repository at this point in the history
  • Loading branch information
riga committed Dec 10, 2022
1 parent 1a927fc commit 5d5f03b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ namespace {
std::vector<tensorflow::Tensor> outputs;

//evaluate the input
tensorflow::run(const_cast<tensorflow::Session*>(session_), inputs, {"Identity"}, &outputs);
tensorflow::run(session_, inputs, {"Identity"}, &outputs);

for (auto nt = 0; nt < bsize_; nt++) {
int itrack = nt + bsize_ * nb;
Expand Down
2 changes: 1 addition & 1 deletion RecoTracker/MkFit/plugins/MkFitOutputConverter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ std::vector<float> MkFitOutputConverter::computeDNNs(TrackCandidateCollection co

//eval and rescale
std::vector<tensorflow::Tensor> outputs;
tensorflow::run(const_cast<tensorflow::Session*>(session), inputs, {"Identity"}, &outputs);
tensorflow::run(session, inputs, {"Identity"}, &outputs);

for (auto nt = 0; nt < bsize_; nt++) {
int itrack = nt + bsize_ * nb;
Expand Down

0 comments on commit 5d5f03b

Please sign in to comment.