# TensorFlow: argument evaluation

**URL:** <https://discourse.julialang.org/t/tensorflow-argument-evaluation/6111>\
**Category:** Machine Learning\
**Created:** [September 27, 2017, 12:35pm UTC](https://discourse.julialang.org/t/tensorflow-argument-evaluation/6111 "2017-09-27T12:35:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Colin\_Beckingham](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/colin_beckingham/32/4878_2.png) [@Colin\_Beckingham](https://discourse.julialang.org/u/Colin_Beckingham)\
**Post date:** [September 27, 2017, 12:35pm UTC](https://discourse.julialang.org/t/tensorflow-argument-evaluation/6111/1 "2017-09-27T12:35:00Z")

</div>

In following Lyndon White’s example of TensorFlow at [JuliaML and TensorFlow Tuitorial](http://white.ucc.asn.au/2017/01/24/JuliaML-and-TensorFlow-Tuitorial.html) I was able to get it to run successfully after two changes:

1. reduce\_sum uses the now deprecated (and refused on my 1.4 dev TF) reduction\_indices - changing this to axis worked fine
2. “get\_shape(Y\_obs .\* log(Y\_pred))” was not able to evaluate the argument with message

ERROR: syntax: “.\*(Y\_obs,log(Y\_pred))” is not a valid function argument name

However taking the argument and assigning it to a variable and then using the new variable name allowed it to work correctly. Just wondering what subtle change in Julia is responsible here.
