Comments (6)
Thank you for your response. I lacked knowledge about the collate function. Following your advice, the error has been resolved. Thank you!
from lightning.
from lightning.
Thank you for making me realize my lack of knowledge. Thanks to you, I have an opportunity to study again (even though I just learned it from ChatGPT, haha). This program is the most complex and difficult one I have ever written, so I think I will continue to post issues. If you don't mind, I would appreciate your help in the future as well.
Thank you!
from lightning.
Hey @YuyaWake did you take a look at the full stack trace where this happened? You didn't post all of it, it's truncated, but if you look at it closely you'll be able to see in which module forward this happens, and then you can find where you need to pass the missing masks args.
from lightning.
I think I caught the error ....
The error is saying that forward function requires one more argument to be defined or putting it another way , you are passing arguments more than that expected by forward function.
Looking at your collate()
definition , it is returning 6 objects...
But forward is defined to take 5 objects except the self....
Pls correct the forward()
definition to remove this error....
Hope I could deliver my point...
Please put your take on it...
Thanks
from lightning.
from lightning.
Related Issues (20)
- _atomic_save with transaction cause "Invalid cross-device link" error HOT 2
- Custom batch sampler fails to re-instantiate in `_dataloader_init_kwargs_resolve_sampler` HOT 1
- MLFlow logger returns None when MLFlow server is used
- `strict = False` does not work when the checkpoint is distributed
- Lightning place model inputs and model to different devices HOT 1
- Validation is incorrectly run on resume HOT 2
- WandbLogger will cause error on TPU v3-8
- Bug Report: Incorrect URI Prefix Stripping in MLflowLogger
- SLURM resubmission crashes because of multiprocessing error
- `NeptuneCallback` produces lots of `X-coordinates (step) must be strictly increasing` errors
- Saving a checkpoint every n epochs does not work as expected HOT 2
- Mid-epoch resume causes a single unwanted validation step (which is not a sanity check)
- Fabric does not sync gradients?
- Error encountered while using multiple optimizers inside a loop.
- Incosistant memory usage comparing to huggingface trainer when using deepspeed
- RichProgressBar: refresh_rate doesn't affect metric_component
- the example that shows "The LightningModule also has access to the Hyperparameters" is not correct
- NCCL backend fails during multi-node, multi-GPU training
- `Trainer`'s `.init_module()` context does not initialize model on target device
- The problem shows: version incompatibility from v1.3.x to v2.4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightning.