Skip to content
This repository was archived by the owner on Sep 1, 2022. It is now read-only.
This repository was archived by the owner on Sep 1, 2022. It is now read-only.

java+libtorch version runs much slower than the python+torchscript version #12

@ares89

Description

@ares89

First, I train a IDCNN+CRF model with torch 1.4.0,
Then,I transform it to a torchscript model.
Last, I use the torchscript model with java+libtorch.

In same machine(centos 7.4), use same torchscript model, java+libtorch version runs much slower than the python+torchscript version.
To predict almost 35000 samples, java+libtorch use 1250seconds, python+torchscript use only 300seconds.
Did I miss something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions