#include <TensorFlow.h>
Public Member Functions | |
Backend | getBackend () const |
int | getNThreads () const |
SessionOptions & | getSessionOptions () |
Options (Backend backend) | |
Options () | |
void | setBackend (Backend backend=Backend::cpu) |
void | setThreading (int nThreads=1) |
Public Attributes | |
Backend | _backend |
int | _nThreads |
SessionOptions | _options |
Definition at line 33 of file TensorFlow.h.
|
inline |
Definition at line 38 of file TensorFlow.h.
|
inline |
Definition at line 43 of file TensorFlow.h.
|
inline |
|
inline |
|
inline |
void tensorflow::Options::setBackend | ( | Backend | backend = Backend::cpu | ) |
Definition at line 22 of file TensorFlow.cc.
References _options, cms::Exception::addContext(), HLT_2024v13_cff::backend, tensorflow::best, tensorflow::cpu, tensorflow::cuda, tensorflow::intel, edm::ResourceInformation::nvidiaDriverVersion(), tensorflow::rocm, and edm::errors::UnavailableAccelerator.
void tensorflow::Options::setThreading | ( | int | nThreads = 1 | ) |
Backend tensorflow::Options::_backend |
Definition at line 35 of file TensorFlow.h.
Referenced by getBackend().
int tensorflow::Options::_nThreads |
Definition at line 34 of file TensorFlow.h.
Referenced by getNThreads(), and setThreading().
SessionOptions tensorflow::Options::_options |
Definition at line 36 of file TensorFlow.h.
Referenced by getSessionOptions(), setBackend(), and setThreading().