tensorflow-lambda icon indicating copy to clipboard operation
tensorflow-lambda copied to clipboard

Error when calling loadTf() when invoking lambda function locally

Open alaughlin opened this issue 6 years ago • 0 comments

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?

alaughlin avatar Jan 02 '20 16:01 alaughlin