eaplatanios / tensorflow_scala

TensorFlow API for the Scala Programming Language
http://platanios.org/tensorflow_scala/
Apache License 2.0
937 stars 95 forks source link

Make hardcoded paths in examples relative to the project #43

Closed sbrunk closed 6 years ago

sbrunk commented 6 years ago

Right now, running the examples without changes only works on @eaplatanios machine ;-)

Since the examples are usually run from the source tree via SBT/IDE, the dataset download paths and working dirs are just relative to the the project directory.

mandar2812 commented 6 years ago

Well that can be worked around. I import tensorflow_scala in the DynaML library and in the cifar example I simply change the data directory relative to the user home directory.

sbrunk commented 6 years ago

I know it's easy to change. Still a nicer working out of the box experience when you don't have to change paths first though.

mandar2812 commented 6 years ago

@sbrunk Agreed, relative paths should do the trick!

eaplatanios commented 6 years ago

@sbrunk Thanks! I've been meaning to make this change but never got to it. :)