Skip to content

Commit

Permalink
Fixed bug in options.activation
Browse files Browse the repository at this point in the history
  • Loading branch information
Honry committed Sep 26, 2023
1 parent 83737be commit 008b0d6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions facial_landmark_detection/ssd_mobilenetv2_face_nchw.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ ${nameArray[1]}`;
} else {
options.activation = this.builder_.clamp({minValue: 0, maxValue: 6});
}
} else {
options.activation = undefined;
}
return this.builder_.conv2d(input, weights, options);
}
Expand Down
2 changes: 2 additions & 0 deletions facial_landmark_detection/ssd_mobilenetv2_face_nhwc.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ ${nameArray[1]}`;
} else {
options.activation = this.builder_.clamp({minValue: 0, maxValue: 6});
}
} else {
options.activation = undefined;
}
return this.builder_.conv2d(input, weights, options);
}
Expand Down
2 changes: 2 additions & 0 deletions image_classification/mobilenet_nhwc.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ export class MobileNetV2Nhwc {
} else {
options.activation = this.builder_.clamp({minValue: 0, maxValue: 6});
}
} else {
options.activation = undefined;
}
return this.builder_.conv2d(input, weights, options);
}
Expand Down
2 changes: 2 additions & 0 deletions semantic_segmentation/deeplabv3_mnv2_nhwc.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ export class DeepLabV3MNV2Nhwc {
} else {
options.activation = this.builder_.clamp({minValue: 0, maxValue: 6});
}
} else {
options.activation = undefined;
}
return this.builder_.conv2d(input, weights, options);
}
Expand Down

0 comments on commit 008b0d6

Please sign in to comment.