As with most tournaments, Olympic tennis is a knockout competition. All matches are played best of three sets except the men’s singles and doubles finals, which are best of five. In all four divisions, the semi-final winners play to decide the gold and silver medals, and the semi-final losers play for the bronze.
https://olympics.com/ioc/international-tennis-federation