Skip to content

Check dimensions of input tensors before executing plans #167

@sachin-101

Description

@sachin-101

Description

// Execute the plan and get updated model params back.
let [loss, acc, ...updatedModelParams] = await job.plans[
    'training_plan'
].execute(
    job.worker,
    tf.zeros([chunkSize, 50*120]),
    tf.zeros([chunkSize, 2]),
    chunkSize,
    lr,
    ...modelParams
);            

If the dimensions of the input tensors in the above code snippet are wrong, then syft.js throws the following error
Error: We cannot find function mul in TensorFlow.js, performing a manual lookup..
This error message is not very intuitive.

Instead, we can check for the dimensions of the input tensors, and throw error warning the user regarding the wrong dimension.

Are you interested in working on this improvement yourself?

  • Yes, I am.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority: 3 - Medium 😒Should be fixed soon, but there may be other pressing matters that come firstSeverity: 3 - Medium 😒Does not cause a failure, impair usability, or interfere with the systemStatus: Available 👋Available for assignment, who wants it?Type: Improvement 📈Performance improvement not introducing a new feature or requiring a major refactor

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions