From 4332472c2b34a96868e182e6c76b5a6ceed59908 Mon Sep 17 00:00:00 2001 From: Jerod Weinman Date: Tue, 22 Dec 2020 09:32:40 -0600 Subject: [PATCH] Removed invalid 'type' argument from tf.identity call --- pydiffvg_tensorflow/render_tensorflow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pydiffvg_tensorflow/render_tensorflow.py b/pydiffvg_tensorflow/render_tensorflow.py index bd8a3fd..0ccc454 100644 --- a/pydiffvg_tensorflow/render_tensorflow.py +++ b/pydiffvg_tensorflow/render_tensorflow.py @@ -133,7 +133,7 @@ def serialize_scene(canvas_width, elif isinstance(shape, pydiffvg.Path): assert(shape.points.shape[1] == 2) args.append(ShapeType.asTensor(diffvg.ShapeType.path)) - args.append(tf.identity(shape.num_control_points, type=tf.int32)) + args.append(tf.identity(shape.num_control_points)) args.append(tf.identity(shape.points)) args.append(tf.constant(shape.is_closed)) elif isinstance(shape, pydiffvg.Polygon):