Skip to content

Error when calling loadTf() when invoking lambda function locally #7

Open
@alaughlin

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions