#include <PointIdAlg.h>
Definition at line 75 of file PointIdAlg.h.
 
      
        
          | nnet::TfModelInterface::TfModelInterface  | 
          ( | 
          const char *  | 
          modelFileName | ) | 
           | 
        
      
 
Definition at line 91 of file PointIdAlg.cxx.
   94                         {
"cnn_output", 
"_netout"});
    97   mf::LogInfo(
"TfModelInterface") << 
"TF model loaded.";
 MaybeLogger_< ELseverityLevel::ELsev_info, false > LogInfo
 
static std::unique_ptr< Graph > create(const char *graph_file_name, const std::vector< std::string > &outputs={}, int ninputs=1, int noutputs=1)
 
cet::coded_exception< errors::ErrorCodes, ExceptionDetail::translate > Exception
 
std::string findFile(const char *fileName) const 
 
std::unique_ptr< tf::Graph > g
 
 
 
 
Reimplemented from nnet::ModelInterface.
Definition at line 102 of file PointIdAlg.cxx.
  104   if ((samples == 0) || inps.empty() || inps.front().empty() || inps.front().front().empty())
   107   if ((samples == -1) || (samples > (
long long int)inps.size())) { samples = inps.size(); }
   109   long long int rows = inps.front().size(), cols = inps.front().front().size();
   111   tensorflow::Tensor _x(tensorflow::DT_FLOAT, tensorflow::TensorShape({samples, rows, cols, 1}));
   112   auto input_map = _x.tensor<
float, 4>();
   113   for (
long long int s = 0; 
s < samples; ++
s) {
   114     const auto& sample = inps[
s];
   115     for (
long long int r = 0; 
r < rows; ++
r) {
   116       const auto& 
row = sample[
r];
   117       for (
long long int c = 0; 
c < cols; ++
c) {
   118         input_map(
s, 
r, 
c, 0) = 
row[
c];
 
std::unique_ptr< tf::Graph > g
 
 
 
 
Implements nnet::ModelInterface.
Definition at line 128 of file PointIdAlg.cxx.
  130   long long int rows = inp2d.size(), cols = inp2d.front().size();
   132   tensorflow::Tensor _x(tensorflow::DT_FLOAT, tensorflow::TensorShape({1, rows, cols, 1}));
   133   auto input_map = _x.tensor<
float, 4>();
   134   for (
long long int r = 0; 
r < rows; ++
r) {
   135     const auto& 
row = inp2d[
r];
   136     for (
long long int c = 0; 
c < cols; ++
c) {
   137       input_map(0, 
r, 
c, 0) = 
row[
c];
   141   auto out = 
g->run(_x);
   145     return std::vector<float>();
 
std::unique_ptr< tf::Graph > g
 
 
 
 
  
  
      
        
          | std::unique_ptr<tf::Graph> nnet::TfModelInterface::g | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following files:
- larrecodnn/larrecodnn/ImagePatternAlgs/Tensorflow/PointIdAlg/PointIdAlg.h
 
- larrecodnn/larrecodnn/ImagePatternAlgs/Tensorflow/PointIdAlg/PointIdAlg.cxx