Recently, L. Rozansky and E. Witten associated to any hyper-Kahler manifold
X a system of 'weights' (numbers, one for each trivalent graph) and used t
hem to construct invariants of topological 3-manifolds. We give a simple co
homological definition of these weights in terms of the Atiyah class of,X (
the obstruction to the existence of a holomorphic connection). We show that
the analogy between the tensor of curvature of a hyper-Kahler metric and t
he tensor of structure constants of a Lie algebra observed by Rozansky and
Witten, holds in fact for any complex manifold, if we work at the level of
cohomology and for any Kahler manifold, if we work at the level of Dolbeaul
t cochains. As an outcome of our considerations, we give a formula for Roza
nsky-Witten classes using any Kahler metric on a holomorphic symplectic man
ifold.