Skip to content

ValueError: setting an array element with a sequence #7

Description

@libing125

ValueError: setting an array element with a sequence.
global step 0 learning rate 0.1000 step-time 0.00 perplexity [1.00] kl_loss [0.00] dec_loss [0.00] dis_loss [0.00]
Traceback (most recent call last):
File "main.py", line 342, in
evaluate(model, sess, data_dev)
File "main.py", line 202, in evaluate
outputs = model.step_decoder(sess, batched_data, forward_only=True, global_t = FLAGS.full_kl_step)
File "/home/Documents/code/sentence-function/model.py", line 262, in step_decoder
return session.run(output_feed, input_feed)
File "/home/anaconda3/envs/conda36/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 929, in run
run_metadata_ptr)
File "/home/anaconda3/envs/conda36/lib/python3.6/site-packages/tensorflow/python/client/session.py", line 1121, in _run
np_val = np.asarray(subfeed_val, dtype=subfeed_dtype)
File "/home/anaconda3/envs/conda36/lib/python3.6/site-packages/numpy/core/numeric.py", line 538, in asarray
return array(a, dtype, copy=False, order=order)
ValueError: setting an array element with a sequence.

I saw @shaneshbi solved this problem by adjusting .label files, but still can't figure it out.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions