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

unable to train deep learning model #8

Open
KunalShivhare opened this issue Sep 30, 2021 · 0 comments
Open

unable to train deep learning model #8

KunalShivhare opened this issue Sep 30, 2021 · 0 comments

Comments

@KunalShivhare
Copy link

TypeError: in user code:

D:\anaconda3\envs\tr\lib\site-packages\tensorflow\python\keras\engine\training.py:805 train_function  *
    return step_function(self, iterator)
D:\anaconda3\envs\tr\lib\site-packages\tensorflow\python\keras\engine\training.py:795 step_function  **
    outputs = model.distribute_strategy.run(run_step, args=(data,))
D:\anaconda3\envs\tr\lib\site-packages\tensorflow\python\distribute\distribute_lib.py:1259 run
    return self._extended.call_for_each_replica(fn, args=args, kwargs=kwargs)
D:\anaconda3\envs\tr\lib\site-packages\tensorflow\python\distribute\distribute_lib.py:2730 call_for_each_replica
    return self._call_for_each_replica(fn, args, kwargs)
D:\anaconda3\envs\tr\lib\site-packages\tensorflow\python\distribute\distribute_lib.py:3417 _call_for_each_replica
    return fn(*args, **kwargs)
D:\anaconda3\envs\tr\lib\site-packages\tensorflow\python\keras\engine\training.py:788 run_step  **
    outputs = model.train_step(data)
D:\anaconda3\envs\tr\lib\site-packages\tensorflow\python\keras\engine\training.py:754 train_step
    y_pred = self(x, training=True)
D:\anaconda3\envs\tr\lib\site-packages\tensorflow\python\keras\engine\base_layer.py:1012 __call__
    outputs = call_fn(inputs, *args, **kwargs)
D:\anaconda3\envs\tr\lib\site-packages\tensorflow\python\keras\engine\sequential.py:389 call  **
    outputs = layer(inputs, **kwargs)
D:\anaconda3\envs\tr\lib\site-packages\tensorflow\python\keras\engine\base_layer.py:1008 __call__
    self._maybe_build(inputs)
D:\anaconda3\envs\tr\lib\site-packages\tensorflow\python\keras\engine\base_layer.py:2710 _maybe_build
    self.build(input_shapes)  # pylint:disable=not-callable
D:\anaconda3\envs\tr\lib\site-packages\tensorflow\python\keras\utils\tf_utils.py:272 wrapper
    output_shape = fn(instance, input_shape)
D:\anaconda3\envs\tr\lib\site-packages\tensorflow\python\keras\layers\merge.py:500 build
    del reduced_inputs_shapes[i][self.axis]

TypeError: list indices must be integers or slices, not ListWrapper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant