Tensorflow C++, how to convert tensorflow::Output to Tensor

Viewed 214

Tensorflow C++, how to convert type tensorflow::Output to type Tensor, without using the Run() function.

After Conv2D(), I want to use the function of FusedBatchNorm().

auto Conv2DOut = Conv2D(...);

auto BatchNorm = FusedBatchNorm(..., Conv2DOut, ...);

But the function FusedBatchNorm()'s input parameter x's type is Tensor, not tensorflow::Output.

So, I need convert Conv2DOut to Tensor. If this can not be done, it maybe a bug with TensorFlow C++.

0 Answers
Related