  We compute the anomalies of the topological A and B models with target space
geometry of Hitchin's generalized type. The dimension of the moduli space of
generalized holomorphic maps is also computed, which turns out to be equal to
the total anomaly if the moduli space is unobstructed. We obtain this result by
identifying the infinitesimal deformations of such maps and by using the
Grothendieck-Riemann-Roch formula.
