I have custom accuracy function for my tensorflow network. Currently its running very slow because of it and I cant figure out how to condense the code to speed it up. I\'