Skip to content

Commit

Permalink
Fix pylint error: numpy concatenate has no dtype.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 706708506
  • Loading branch information
agutkin committed Dec 16, 2024
1 parent 9fcde1e commit 109129c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions protoscribe/corpus/tools/quantize_sketches_simple_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ def _collect_points(examples: Iterable[dict[str, Any]]) -> Array:
touch_points.append(sketch[list(pen_touch_ids), :2])
lift_points.append(sketch[list(pen_lift_ids), :2])

touch_points = np.concatenate(touch_points, dtype=np.float32)
lift_points = np.concatenate(lift_points, dtype=np.float32)
touch_points = np.concatenate(touch_points).astype(dtype=np.float32)
lift_points = np.concatenate(lift_points).astype(dtype=np.float32)
num_touch = touch_points.shape[0]
num_lift = lift_points.shape[0]
logging.info(
Expand Down

0 comments on commit 109129c

Please sign in to comment.