Ah Thank you @ptrblck !! That was very helpful!! im still getting used to pytorch  :),
i just assumed i could pass the dataset straight in.
The example is below works  but i am a little unsure about how to fit it with new data.

  
      github.com
  
  
    cvxgrp/cvxpylayers/blob/master/examples/torch/signal_denoising.ipynb
{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# Signal denoising\n",
    "\n",
    "This notebook accompanies the paper [Learning Convex Optimization Models](https://web.stanford.edu/~boyd/papers/learning_copt_models.html)."
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "import math\n",
    "\n",
    "import cvxpy as cp\n",


  This file has been truncated. show original

  
  
    
    
  
  


Do you have any thoughts about how i could fit new data with the current example.
Kind regards ,
Andrew