I don't have an Edge 20, so cannot confirm for sure, but I think that the only thing that can be uploaded to the device is a course from Garmin Connect. So first you'd need to find a way to upload your tcx/gpx to Garmin Connect and then convert it to a course. And that - depending on the contents of the original tcx/gpx - might not be that simple.