jwl1993
jwl1993

Reputation: 324

What is difference between data type Variable vs VariableV2?

In tensorflow, I saw several types of nodes. However I am not sure about distinguish between Variable and VariableV2. I am very thankful if give some specific difference between two types.

Upvotes: 2

Views: 828

Answers (1)

Maxim
Maxim

Reputation: 53758

According to the source code, tf.variable_op (which corresponds to Variable type) is deprecated:

Deprecated. Used variable_op_v2 instead.

So one is the new version of the other. Right now, both are supported, but in the future versions Variable is likely to be dropped.

Upvotes: 2

Related Questions