error in docker: shape requires a multiple of 100
Steps to reproduce:
docker run -it ottovonxu/slide:v3 bash
___ /________________________________ / /______ __ __ / _ _ _ __ _ / __ _ / / __ / __ _ | /| / / _ / / / / / /( )/ // / / _ __/ _ / / // / |/ |/ / // ___/// //// _/// // // _/__/|__/
WARNING: You are running this container as root, which can cause new files in mounted volumes to be created as the root user on your host machine.
To avoid this, run the container by specifying your user's userid:
$ docker run -u $(id -u):$(id -g) args...
root@0506217073cd:/# cd /slide/src/HashingDeepLearning/python_examples
root@0506217073cd:/slide/src/HashingDeepLearning/python_examples# python example_sampled_softmax.py WARNING:tensorflow:From /usr/local/lib/python3.6/dist-packages/tensorflow/python/ops/nn_impl.py:1344: softmax_cross_entropy_with_logits (from tensorflow.python.ops.nn_ops) is deprecated and will be removed in a future version. Instructions for updating:
Future major versions of TensorFlow will allow gradients to flow into the labels input on backprop by default.
See @{tf.nn.softmax_cross_entropy_with_logits_v2}.
2020-03-08 20:17:57.007308: I tensorflow/core/platform/cpu_feature_guard.cc:140] Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA Finished 0 steps. Time elapsed for last 500 batches = 0.00030684471130371094 test_acc: 0.0 ####################### Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py", line 1322, in _do_call return fn(*args) File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py", line 1307, in _run_fn options, feed_dict, fetch_list, target_list, run_metadata) File "/usr/local/lib/python3.6/dist-packages/tensorflow/python/client/session.py", line 1409, in _call_tf_sessionrun run_metadata) tensorflow.python.framework.errors_impl.InvalidArgumentError: Input to reshape is a tensor with 85771648 values, but the requested shape requires a multiple of 100 [[Node: Reshape = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_Placeholder_2_0_2, sampled_softmax_loss/concat_1/values_0)]]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "example_sampled_softmax.py", line 116, in
Caused by op 'Reshape', defined at:
File "example_sampled_softmax.py", line 116, in
InvalidArgumentError (see above for traceback): Input to reshape is a tensor with 85771648 values, but the requested shape requires a multiple of 100 [[Node: Reshape = Reshape[T=DT_FLOAT, Tshape=DT_INT32, _device="/job:localhost/replica:0/task:0/device:CPU:0"](_arg_Placeholder_2_0_2, sampled_softmax_loss/concat_1/values_0)]]
I'm able to run it further with batch size = 100, I get segmentation fault shortly after that with multiple warnings on allocating more than 10% of system memory.
Make sure you have pulled from master from the right remote repo