Selective hydrogenation of the diolefin or acetylene compounds