Develop and Implement _to_tensors for TraceTypes in FuncGraph.
@@ -59,6 +59,9 @@ class AutoCastVariableSpec(tf.types.experimental.TraceType):
"""Use the AutoCastVariable value itself as a placeholder."""
return self._value
+ def _to_tensors(self, value):
+ return []
+
def __hash__(self) -> int:
return hash(id(self._value))
