Error when calling loadTf() when invoking lambda function locally #7
Open
Description
I'm trying to test my lambda function locally like this:
serverless invoke local -f myFunction -p event.json -l true
and when loadTf()
is called like this:
const loadTf = require('tensorflow-lambda');
await loadTf();
it throws an error:
Cannot find module '/tmp/tfjs-node'
This might be more related to aws-lambda since paths in general seem kind of screwed up when invoking functions locally, but just checking to see if anyone has run into this before and how to handle it?
Metadata
Assignees
Labels
No labels