I'm using the following code to add tensor with scalar as follows,
self.seen = tf.compat.v1.assign_add(self.seen , 1.)
Unfotunately it throws the following error,
> ValueError: Operation name: "AssignAddVariableOp" op:
> "AssignAddVariableOp" input: "AssignAddVariableOp/Variable" input:
> "Const" attr { key: "dtype" value {
> type: DT_FLOAT } } is not an element of this graph.
what am I missing?