Skip to content

Commit

Permalink
Better dense initialize
Browse files Browse the repository at this point in the history
Reviewed By: tianqibt

Differential Revision: D18967892

fbshipit-source-id: 7db3e220b9947e0a681113e3b06ebc14a9aaf991
  • Loading branch information
Cecily Jiang authored and facebook-github-bot committed Dec 12, 2019
1 parent 2a25647 commit 7fcb6be
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public static void processParameters(Map<String, String> parameters) {

private static boolean shouldFilterKey(String textFeature) {
float[] dense = new float[30];
Arrays.fill(dense, new Float(0));
Arrays.fill(dense, 0);
String shouldFilter = ModelManager.predict(
ModelManager.MODEL_ADDRESS_DETECTION, dense, textFeature);
return shouldFilter != null && shouldFilter.equals(Model.SHOULD_FILTER);
Expand Down

0 comments on commit 7fcb6be

Please sign in to comment.