KyleL
KyleL

Reputation: 883

Difference between tf.GradientTape and backprop.GradientTape

When looking at the OptimizerV2 code in Tensorflow 1.15 I noticed that they use backprop.GradientTape to compute the gradient.

I can't find any online reference to this class, only to tf.GradientTape. What is the difference between the two?

Upvotes: 3

Views: 167

Answers (1)

Sergei Lebedev
Sergei Lebedev

Reputation: 2679

There is no difference, it is the same class:

@tf_export("GradientTape", "autodiff.GradientTape", v1=["GradientTape"])
class GradientTape(object):
  ...

TensorFlow internals generally do not use the public API and import other internal modules directly.

Upvotes: 4

Related Questions