Skip to content

Instantly share code, notes, and snippets.

#include "tensorflow/cc/client/client_session.h"
#include "tensorflow/cc/ops/standard_ops.h"
#include "tensorflow/core/framework/tensor.h"
namespace tf = tensorflow;
namespace to = tf::ops;
int main() {
tf::Scope r = tf::Scope::NewRootScope();
tf::Scope s = r.ExitOnError();