Skip to content

AttributeError: type object 'Tensor' has no attribute '__getitem__' . #28

@PNiharika22

Description

@PNiharika22

Hello,
while trying to train my model using train_bottleneck.
I'm facing the following issue:

***AppData\Roaming\Python\Python38\site-packages\tensorflow\python\ops\variables.py in _OverloadOperator(cls, operator)
1066 return
1067
-> 1068 tensor_oper = getattr(ops.Tensor, operator)
1069
1070 def _run_op(a, args, kwargs):
AttributeError: type object 'Tensor' has no attribute 'getitem' .

Can you please suggest me how to solve this.

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