question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Lambda functions and DDP incompatibilities

See original GitHub issue
AttributeError: Can't pickle local object 'WeightRegularizerMixin.__init__.<locals>.<lambda>'

The use of lambda functions causes distributed training to fail due to the use of pickling in fork. I searched for lambdas in the repo and there are only around 10 instances, should be an easy fix?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
KevinMusgravecommented, Feb 7, 2020

I removed all nested function definitions, so pickling loss functions works now. Hopefully that fixes it! fingers crossed

2reactions
s-rogcommented, Feb 11, 2020

Awesome, I’ll test it out soon!

Edit: seems to be working! (after converting all args to keyword args)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lambda instruction set architectures - AWS Documentation
The instruction set architecture of a Lambda function determines the type of computer processor that Lambda uses to run the function.
Read more >
Compatibility and requirements of AWS Lambda monitoring
Before enabling serverless monitoring for AWS Lambda, make sure you meet the requirements and learn about AWS charges resulting from its use.
Read more >
Lambda expressions and anonymous functions | Microsoft Learn
C# lambda expressions that are used to create anonymous functions and expression bodied members.
Read more >
Use Application Security layer to protect AWS Lambda functions
Adding protection to your Lambda function is simple and only requires adding the Application Security layer and adding the required configuration for the ......
Read more >
Amazon Lambda – FAQs
Q: Do my Amazon Lambda functions remain available when I change my code or its configuration? Yes. When you update a Lambda function,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found