A semiconductor device includes an intermediate layer provided between a
semiconductor element and a heat sink. The intermediate layer moderates
thermal stress resulting from a difference between thermal expansion of
the semiconductor element and thermal expansion of the heat sink arising
due to heat produced by the semiconductor element. This thermal stress
moderation reduces warping of the semiconductor device as a whole.