Fix Attributeerror Module Tensorflow Has No Attribute Reduce Sum

Fix Attributeerror Module Tensorflow Has No Attribute Reduce Sum