Coder Social home page Coder Social logo

imagecaptransformer's Introduction

  • 👋 Hi, I’m @iamsiddhantsahu
  • 👀 I’m interested in Machine Learning and Cloud Computing
  • 🌱 I’m currently learning a computer science student at the University and ETH Zurich.
  • 💞️ I’m looking to collaborate on various projects involving machine learning, computer systems and mathematics.
  • 📫 How to reach me [email protected]

imagecaptransformer's People

Contributors

iamsiddhantsahu avatar lenka98 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

imagecaptransformer's Issues

ValueError: Tried to convert 'multiples' to a tensor and failed. Error: Shapes must be equal rank, but are 2 and 0 From merging shape 0 with other shapes. for 'encoder/enc_pe/Tile/packed' (op: 'Pack') with input shapes: [196,512],

This comes after solver.train() is called in the train.py

Traceback (most recent call last):
File "/opt/conda/lib/python3.7/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: Shapes must be equal rank, but are 2 and 0
From merging shape 0 with other shapes. for 'encoder/enc_pe/Tile/multiples_1' (op: 'Pack') with input shapes: [196,512], [].

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/framework/op_def_library.py", line 528, in _apply_op_helper
preferred_dtype=default_dtype)
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/framework/ops.py", line 1297, in internal_convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/ops/array_ops.py", line 1267, in _autopacking_conversion_function
return _autopacking_helper(v, dtype, name or "packed")
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/ops/array_ops.py", line 1203, in _autopacking_helper
return gen_array_ops.pack(elems_as_tensors, name=scope)
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/ops/gen_array_ops.py", line 6303, in pack
"Pack", values=values, axis=axis, name=name)
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/framework/op_def_library.py", line 794, in _apply_op_helper
op_def=op_def)
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/util/deprecation.py", line 507, in new_func
return func(*args, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/framework/ops.py", line 3357, in create_op
attrs, op_def, compute_device)
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/framework/ops.py", line 3426, in _create_op_internal
op_def=op_def)
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/framework/ops.py", line 1770, in init
control_input_ops)
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/framework/ops.py", line 1610, in _create_c_op
raise ValueError(str(e))
ValueError: Shapes must be equal rank, but are 2 and 0
From merging shape 0 with other shapes. for 'encoder/enc_pe/Tile/multiples_1' (op: 'Pack') with input shapes: [196,512], [].

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/conda/lib/python3.7/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: Shapes must be equal rank, but are 2 and 0
From merging shape 0 with other shapes. for 'encoder/enc_pe/Tile/packed' (op: 'Pack') with input shapes: [196,512], [].

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/framework/op_def_library.py", line 542, in _apply_op_helper
values, as_ref=input_arg.is_ref).dtype.name
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/framework/ops.py", line 1297, in internal_convert_to_tensor
ret = conversion_func(value, dtype=dtype, name=name, as_ref=as_ref)
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/ops/array_ops.py", line 1267, in _autopacking_conversion_function
return _autopacking_helper(v, dtype, name or "packed")
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/ops/array_ops.py", line 1203, in _autopacking_helper
return gen_array_ops.pack(elems_as_tensors, name=scope)
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/ops/gen_array_ops.py", line 6303, in pack
"Pack", values=values, axis=axis, name=name)
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/framework/op_def_library.py", line 794, in _apply_op_helper
op_def=op_def)
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/util/deprecation.py", line 507, in new_func
return func(*args, **kwargs)
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/framework/ops.py", line 3357, in create_op
attrs, op_def, compute_device)
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/framework/ops.py", line 3426, in _create_op_internal
op_def=op_def)
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/framework/ops.py", line 1770, in init
control_input_ops)
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/framework/ops.py", line 1610, in _create_c_op
raise ValueError(str(e))
ValueError: Shapes must be equal rank, but are 2 and 0
From merging shape 0 with other shapes. for 'encoder/enc_pe/Tile/packed' (op: 'Pack') with input shapes: [196,512], [].

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "train.py", line 28, in
main()
File "train.py", line 25, in main
solver.train()
File "/home/tanhoodz/Major Project/solver.py", line 82, in train
loss = self.model.build_model()
File "/home/tanhoodz/Major Project/model.py", line 74, in build_model
scope="enc_pe")
File "/home/tanhoodz/Major Project/transformer_modules.py", line 135, in positional_encoding
position_ind = tf.tile(tf.expand_dims(tf.range(T), 0), [N, 1])
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/ops/gen_array_ops.py", line 11309, in tile
"Tile", input=input, multiples=multiples, name=name)
File "/opt/conda/lib/python3.7/site-packages/tensorflow_core/python/framework/op_def_library.py", line 546, in _apply_op_helper
(input_name, err))
ValueError: Tried to convert 'multiples' to a tensor and failed. Error: Shapes must be equal rank, but are 2 and 0
From merging shape 0 with other shapes. for 'encoder/enc_pe/Tile/packed' (op: 'Pack') with input shapes: [196,512], [].

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.