tensorflow scipy