#ifdef __CLING__
#endif
#include "encoder.hxx"
#include "core.hxx"
#include "decoder.hxx"
#include "output_transform.hxx"
printf(
" Rmem = %8.3f MB, Vmem = %8.f3 MB \n",
);
return p.fMemResident / 1024.;
}
template<class T>
std::cout << " shape : " << ConvertShapeToString(t.GetShape()) << " size : " << t.GetSize() << "\n";
auto & shape = t.GetShape();
size_t nrows = (shape.size() > 1) ? shape[0] : 1;
size_t ncols = (shape.size() > 1) ? t.GetStrides()[0] : shape[0];
for (
size_t i = 0; i <
nrows; i++) {
if (
j>10) std::cout <<
"... ";
std::cout << *
p << std::endl;
}
}
}
std::cout << std::endl;
}
if (!
txt.empty()) std::cout << std::endl <<
txt << std::endl;
std::cout <<
"node data:"; PrintTensor(
d.node_data);
std::cout <<
"edge data:"; PrintTensor(
d.edge_data);
std::cout <<
"global data:"; PrintTensor(
d.global_data);
std::cout <<
"edge index:"; PrintTensor(
d.edge_index);
}
TMVA_SOFIE_encoder::Session
encoder;
TMVA_SOFIE_core::Session
core;
TMVA_SOFIE_decoder::Session
decoder;
for (
int i = 0; i <
nsteps; i++) {
}
}
};
for (
int i = 0; i <
nevts; i++) {
auto genValue = [&]() {
return r.Rndm()*10 -5; };
auto genLink = [&] () {
return r.Integer(num_nodes);};
}
}
for (
int i = 0; i <
nevts; i++) {
auto &
n = (*(
ndata.GetPtr()))[i];
auto &
e = (*(
edata.GetPtr()))[i];
auto &
g = (*(
gdata.GetPtr()))[i];
auto &
r = (*(
rdata.GetPtr()))[i];
auto & s = (*(
sdata.GetPtr()))[i];
std::copy(
r.begin(),
r.end(),
gd.edge_index.GetData());
std::copy(s.begin(), s.end(),
gd.edge_index.GetData()+num_edges);
if (i < 1 && verbose)
Print(
dataSet[i],
"Input for Event" + std::to_string(i));
}
}
{
const int seed = 111;
std::cout << "reading data\n";
auto h1 =
new TH1D(
"h1",
"SOFIE Node data",40,1,0);
auto h2 =
new TH1D(
"h2",
"SOFIE Edge data",40,1,0);
auto h3 =
new TH1D(
"h3",
"SOFIE Global data",40,1,0);
std::cout << "doing inference...\n";
for (
int i = 0; i <
nevts; i++) {
if (i < 1 && verbose)
Print(
lr,
"Output for Event" + std::to_string(i));
}
auto c2 =
new TCanvas(
"c2",
"Reference Results");
auto o1 = file->Get(
"h1");
auto o2 = file->Get(
"h2");
auto o3 = file->Get(
"h3");
}
#define R__ADD_INCLUDE_PATH(PATH)
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void data
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char filename
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t result
R__EXTERN TSystem * gSystem
ROOT's RDataFrame offers a modern, high-level interface for analysis of data stored in TTree ,...
const_iterator begin() const
const_iterator end() const
A "std::vector"-like collection of values implementing handy operation to analyse them.
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
1-D histogram with a double per channel (see TH1 documentation)
virtual Int_t Fill(Double_t x)
Increment bin with abscissa X by 1.
void Draw(Option_t *option="") override
Draw this histogram with options.
Random number generator class based on M.
virtual int GetProcInfo(ProcInfo_t *info) const
Returns cpu and memory used by this process into the ProcInfo_t structure.
RVec< Common_t > Concatenate(const RVec< T0 > &v0, const RVec< T1 > &v1)
Return the concatenation of two RVecs.
void Copy(void *source, void *dest)
void Print(std::ostream &os, const OptionType &opt)
Double_t Mean(Long64_t n, const T *a, const Double_t *w=nullptr)
Returns the weighted mean of an array a with length n.