I just did an imperial pumpkin ale partial mash using canned pumpkin. Following my recipe, I steeped my specialty grains with the pumpkin in a grain bag, then pulled it out for the boil. Sadly, it turned out rather thick. I am not sure if this is from the pumpkin, or not being fully attenuated, which also happened, but you should definitely use the pumpkin in the mash.