Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
727 changes: 412 additions & 315 deletions DQMServices/Core/interface/ROOTFilePB.pb.h

Large diffs are not rendered by default.

896 changes: 480 additions & 416 deletions DQMServices/Core/src/ROOTFilePB.pb.cc

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions PhysicsTools/TensorFlow/src/TensorFlow.cc
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ namespace tensorflow {

MetaGraphDef* loadMetaGraphDef(const std::string& exportDir, const std::string& tag, Options& options) {
// objects to load the graph
Status status;
absl::Status status;
RunOptions runOptions;
SavedModelBundle bundle;

Expand All @@ -118,7 +118,7 @@ namespace tensorflow {

GraphDef* loadGraphDef(const std::string& pbFile) {
// objects to load the graph
Status status;
absl::Status status;

// load it
GraphDef* graphDef = new GraphDef();
Expand All @@ -140,7 +140,7 @@ namespace tensorflow {

Session* createSession(Options& options) {
// objects to create the session
Status status;
absl::Status status;

// create a new, empty session
Session* session = nullptr;
Expand All @@ -166,7 +166,7 @@ namespace tensorflow {
Session* session = createSession(options);

// add the graph def from the meta graph
Status status;
absl::Status status;
status = session->Create(metaGraphDef->graph_def());
if (!status.ok()) {
throw cms::Exception("InvalidMetaGraphDef")
Expand Down Expand Up @@ -219,7 +219,7 @@ namespace tensorflow {
Session* session = createSession(options);

// add the graph def
Status status;
absl::Status status;
status = session->Create(*graphDef);

// check for success
Expand All @@ -236,7 +236,7 @@ namespace tensorflow {
}

// close and delete the session
Status status = session->Close();
absl::Status status = session->Close();
delete session;

// reset the pointer
Expand Down Expand Up @@ -285,7 +285,7 @@ namespace tensorflow {
return;

// run and check the status
Status status = session->Run(runOptions, inputs, outputNames, {}, outputs, nullptr, threadPoolOptions);
absl::Status status = session->Run(runOptions, inputs, outputNames, {}, outputs, nullptr, threadPoolOptions);
if (!status.ok()) {
throw cms::Exception("InvalidRun") << "error while running session: " << status.ToString();
}
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/TensorFlow/test/testGraphLoading.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ void testGraphLoading::test() {
scale.scalar<float>()() = 1.0;

std::vector<tensorflow::Tensor> outputs;
tensorflow::Status status = session->Run({{"input", input}, {"scale", scale}}, {"output"}, {}, &outputs);
absl::Status status = session->Run({{"input", input}, {"scale", scale}}, {"output"}, {}, &outputs);
if (!status.ok()) {
std::cout << status.ToString() << std::endl;
CPPUNIT_ASSERT(false);
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/TensorFlow/test/testGraphLoadingCUDA.cc
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ process.add_(cms.Service('CUDAService'))
scale.scalar<float>()() = 1.0;

std::vector<tensorflow::Tensor> outputs;
tensorflow::Status status = session->Run({{"input", input}, {"scale", scale}}, {"output"}, {}, &outputs);
absl::Status status = session->Run({{"input", input}, {"scale", scale}}, {"output"}, {}, &outputs);
if (!status.ok()) {
std::cout << status.ToString() << std::endl;
CPPUNIT_ASSERT(false);
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/TensorFlow/test/testHelloWorld.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ void testHelloWorld::test() {
tensorflow::Backend backend = tensorflow::Backend::cpu;

// object to load and run the graph / session
tensorflow::Status status;
absl::Status status;
tensorflow::Options options{backend};
tensorflow::RunOptions runOptions;
tensorflow::SavedModelBundle bundle;
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/TensorFlow/test/testHelloWorldCUDA.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ process.add_(cms.Service('CUDAService'))
tensorflow::Backend backend = tensorflow::Backend::cuda;

// object to load and run the graph / session
tensorflow::Status status;
absl::Status status;
tensorflow::Options options{backend};
tensorflow::RunOptions runOptions;
tensorflow::SavedModelBundle bundle;
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/TensorFlow/test/testMetaGraphLoading.cc
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ void testMetaGraphLoading::test() {
scale.scalar<float>()() = 1.0;

std::vector<tensorflow::Tensor> outputs;
tensorflow::Status status = session2->Run({{"input", input}, {"scale", scale}}, {"output"}, {}, &outputs);
absl::Status status = session2->Run({{"input", input}, {"scale", scale}}, {"output"}, {}, &outputs);
if (!status.ok()) {
std::cout << status.ToString() << std::endl;
CPPUNIT_ASSERT(false);
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/TensorFlow/test/testMetaGraphLoadingCUDA.cc
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ process.add_(cms.Service('CUDAService'))
scale.scalar<float>()() = 1.0;

std::vector<tensorflow::Tensor> outputs;
tensorflow::Status status = session2->Run({{"input", input}, {"scale", scale}}, {"output"}, {}, &outputs);
absl::Status status = session2->Run({{"input", input}, {"scale", scale}}, {"output"}, {}, &outputs);
if (!status.ok()) {
std::cout << status.ToString() << std::endl;
CPPUNIT_ASSERT(false);
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/TensorFlow/test/testVisibleDevices.cc
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ void testVisibleDevices::test() {
CPPUNIT_ASSERT_THROW(tensorflow::createSession(nullptr, options), cms::Exception);

std::vector<tensorflow::DeviceAttributes> response;
tensorflow::Status status = session->ListDevices(&response);
absl::Status status = session->ListDevices(&response);
CPPUNIT_ASSERT(status.ok());

// If a single device is found, we assume that it's the CPU.
Expand Down
2 changes: 1 addition & 1 deletion PhysicsTools/TensorFlow/test/testVisibleDevicesCUDA.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ process.add_(cms.Service('CUDAService'))
CPPUNIT_ASSERT_THROW(tensorflow::createSession(nullptr, options), cms::Exception);

std::vector<tensorflow::DeviceAttributes> response;
tensorflow::Status status = session->ListDevices(&response);
absl::Status status = session->ListDevices(&response);
CPPUNIT_ASSERT(status.ok());

// If a single device is found, we assume that it's the CPU.
Expand Down
7 changes: 0 additions & 7 deletions PhysicsTools/TensorFlowAOT/test/BuildFile.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
<test name="testAOTTools" command="python3 ${LOCALTOP}/src/PhysicsTools/TensorFlowAOT/test/testAOTTools.py"/>

<bin name="testTFAOTInterface" file="testRunner.cpp,testInterface.cc">
<use name="cppunit"/>
<use name="PhysicsTools/TensorFlowAOT"/>
<use name="tfaot-model-test-simple"/>
<use name="tfaot-model-test-multi"/>
</bin>
4 changes: 2 additions & 2 deletions RecoTauTag/RecoTau/plugins/DeepTauId.cc
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ namespace deep_tau {
const std::string& graph_file = graph_entry.second;
if (mem_mapped) {
memmappedEnv_[entry_name] = std::make_unique<tensorflow::MemmappedEnv>(tensorflow::Env::Default());
const tensorflow::Status mmap_status = memmappedEnv_.at(entry_name)->InitializeFromFile(graph_file);
const absl::Status mmap_status = memmappedEnv_.at(entry_name)->InitializeFromFile(graph_file);
if (!mmap_status.ok()) {
throw cms::Exception("DeepTauCache: unable to initalize memmapped environment for ")
<< graph_file << ". \n"
<< mmap_status.ToString();
}

graphs_[entry_name] = std::make_unique<tensorflow::GraphDef>();
const tensorflow::Status load_graph_status =
const absl::Status load_graph_status =
ReadBinaryProto(memmappedEnv_.at(entry_name).get(),
tensorflow::MemmappedFileSystem::kMemmappedPackageDefaultGraphDef,
graphs_.at(entry_name).get());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ namespace ALPAKA_ACCELERATOR_NAMESPACE::riemannFit {
#endif
{
Eigen::Matrix<double, 1, 1> cm;
Eigen::Matrix<double, 1, 1> cm2;
// Eigen::Matrix<double, 1, 1> cm2;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you delete this line, along with the other commented-out line at line 745 ?

cm = mc.transpose() * vMat * mc;
const double tempC2 = cm(0, 0);
Matrix2Nd<N> tempVcsMat;
Expand Down