tensorflow / tensorflow/privacy

tensorflow.python.framework.errors_impl.InvalidArgumentError

Open
#113 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2k
Forks
477
Avg merge
22h 12m
Merged PRs (30d)
1

Description

Traceback (most recent call last):
File "D:\Anaconda2\envs\tf1\lib\site-packages\tensorflow_core\python\framework\ops.py", line 1607, in _create_c_op
c_op = c_api.TF_FinishOperation(op_desc)
tensorflow.python.framework.errors_impl.InvalidArgumentError: Dimension size must be evenly divisible by 250 but is 1 for 'training/Reshape' (op: 'Reshape') with input shapes: [], [2] and with input tensors computed as partial s

how can i sovle it ,thanks

Yes that issue is known to the recent version of TensorFlow-privacy. When I checked in way in Feb, it was running fine, we need to raise this issue with TensorFlow-privacy..
https://hackernoon.com/differential-privacy-with-tensorflow-20-multi-class-text-classification-privacy-yk7a37uh.

here, the code snippets and results are attached..

I doubt it was the version problem?
thanks

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the traceback and the attached code snippets and results, then identify the TensorFlow and TensorFlow Privacy versions used in the Anaconda environment. Reproduce the training/Reshape failure and document the minimal cause or version change that resolves it.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, tensorflow
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.