Skip to content

Commit

Permalink
bump version: 1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rickycao-qy committed Jun 29, 2020
1 parent aadb9d7 commit 1430719
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipcook/plugins-tensorflow-mobilenet-model-define",
"version": "1.0.0",
"version": "1.0.1",
"description": "mobilenet model of tensorflow",
"main": "dist/index",
"types": "dist/index",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ const mobilenetDefine: ModelDefineType = async (data: ImageDataset, args: ModelD
channels: 3
}));
const shape = tf.shape(image).numpy();
return this.model.predict(tf.reshape(image, [ 1 ].concat(shape.slice(0, 3)))).toString();
return this.model.predict(tf.reshape(image, [ 1 ].concat(...shape.slice(0, 3)))).toString();
}
};
return result;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pipcook/plugins-tensorflow-resnet-model-define",
"version": "1.0.0",
"version": "1.0.1",
"description": "resnet model of tensorflow",
"main": "dist/index",
"types": "dist/index",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const resnetModelDefine: ModelDefineType = async (data: ImageDataset, args: Mode
channels: 3
}));
const shape = tf.shape(image).numpy();
return this.model.predict(tf.reshape(image, [ 1 ].concat(shape.slice(0, 3)))).toString();
return this.model.predict(tf.reshape(image, [ 1 ].concat(...shape.slice(0, 3)))).toString();
}
};
return result;
Expand Down

0 comments on commit 1430719

Please sign in to comment.