Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change the batch_size parameter #113

Open
Kamyar-azar opened this issue Jun 22, 2021 · 0 comments
Open

Change the batch_size parameter #113

Kamyar-azar opened this issue Jun 22, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@Kamyar-azar
Copy link

Hi Arturo,
I was wondering if we can change the batch_size value as well? When I tried to change its value, I got the below error:

  File "C:\Users\kamyr\anaconda3\envs\tensorflow_gpu\lib\site-packages\IPython\core\interactiveshell.py", line 3417, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-6-0a14997f5eab>", line 36, in <module>
    shuffle=False)
  File "C:\Users\kamyr\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\keras\engine\training.py", line 1100, in fit
    tmp_logs = self.train_function(iterator)
  File "C:\Users\kamyr\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\eager\def_function.py", line 828, in __call__
    result = self._call(*args, **kwds)
  File "C:\Users\kamyr\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\eager\def_function.py", line 888, in _call
    return self._stateless_fn(*args, **kwds)
  File "C:\Users\kamyr\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\eager\function.py", line 2943, in __call__
    filtered_flat_args, captured_inputs=graph_function.captured_inputs)  # pylint: disable=protected-access
  File "C:\Users\kamyr\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\eager\function.py", line 1919, in _call_flat
    ctx, args, cancellation_manager=cancellation_manager))
  File "C:\Users\kamyr\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\eager\function.py", line 560, in call
    ctx=ctx)
  File "C:\Users\kamyr\AppData\Roaming\Python\Python37\site-packages\tensorflow\python\eager\execute.py", line 60, in quick_execute
    inputs, attrs, num_outputs)
tensorflow.python.framework.errors_impl.InvalidArgumentError:  Incompatible shapes: [1310] vs. [32,32]
	 [[node loss/mul (defined at <ipython-input-2-9dae00935354>:63) ]] [Op:__inference_train_function_7212]
Errors may have originated from an input operation.
Input Source operations connected to node loss/mul:
 loss/sub (defined at <ipython-input-2-9dae00935354>:62)
Function call stack:
train_function

Thanks for the support.

@Kamyar-azar Kamyar-azar added the bug Something isn't working label Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant