If Tom had an agenda during Sunday's episode, it was to find a way to reconcile with Shiv. It's impossible to say for sure why he wants to get back with her, but given that Tom recently lost his staunchest advocate with Logan's passing, he might see a reunion as a way to gain some leverage in the family business. Either way, coming onto Shiv at her father's wake wasn't Tom's finest moment.
Shiv, for her part, seemed uninterested in Tom's less-than-subtle advances. When Tom tried to wax nostalgic with her about the first time they slept together, she flinched at his touch and eventually just walked away. But Shiv's attitude towards Tom could shift before the season ends, especially if she's carrying their child.