Skip to content

how to predict in CNNTextClassifier.java? #587

@yangjun023

Description

@yangjun023

1.the model use ReshapePreProcessor

 graphConfBuilder.addVertex(reshapedForConvName,
            new PreprocessorVertex(new ReshapePreProcessor(
                new int[] {batchSize * docLength, embeddingsDim},
                new int[]{batchSize, 1, docLength, embeddingsDim})),
            embeddedName);
  1. when predict,there is only one sample ,there will be a error "Mis matched lengths",how to fix the bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions