Hi,
Would like to use GradientTape in c++ but cannot find any code sample that demonstrates how to do so.


In python:
with GradientTape as tape:
tape.watch(x)
y = x * x


In C++: ?


Does anyone have some sample to share?
Best,
Dom