Skip to content

Commit

Permalink
change pt->torch_script
Browse files Browse the repository at this point in the history
Signed-off-by: HenryL27 <[email protected]>
  • Loading branch information
HenryL27 committed Dec 6, 2023
1 parent b3e90b5 commit be113ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void setUp() throws URISyntaxException {
.build();
modelHelper = new ModelHelper(mlEngine);
params = new HashMap<>();
modelZipFile = new File(getClass().getResource("TinyBERT-CE-pt.zip").toURI());
modelZipFile = new File(getClass().getResource("TinyBERT-CE-torch_script.zip").toURI());
params.put(MODEL_ZIP_FILE, modelZipFile);
params.put(MODEL_HELPER, modelHelper);
params.put(ML_ENGINE, mlEngine);
Expand Down Expand Up @@ -220,7 +220,7 @@ public void initModel_predict_ONNX_CrossEncoder() throws URISyntaxException {
@Test
public void initModel_NullModelHelper() throws URISyntaxException {
Map<String, Object> params = new HashMap<>();
params.put(MODEL_ZIP_FILE, new File(getClass().getResource("TinyBERT-CE-pt.zip").toURI()));
params.put(MODEL_ZIP_FILE, new File(getClass().getResource("TinyBERT-CE-torch_script.zip").toURI()));
IllegalArgumentException e = assertThrows(
IllegalArgumentException.class,
() -> textSimilarityCrossEncoderModel.initModel(model, params, encryptor)
Expand All @@ -231,7 +231,7 @@ public void initModel_NullModelHelper() throws URISyntaxException {
@Test
public void initModel_NullMLEngine() throws URISyntaxException {
Map<String, Object> params = new HashMap<>();
params.put(MODEL_ZIP_FILE, new File(getClass().getResource("TinyBERT-CE-pt.zip").toURI()));
params.put(MODEL_ZIP_FILE, new File(getClass().getResource("TinyBERT-CE-torch_script.zip").toURI()));
params.put(MODEL_HELPER, modelHelper);
IllegalArgumentException e = assertThrows(
IllegalArgumentException.class,
Expand Down

0 comments on commit be113ed

Please sign in to comment.