Skip to content

Commit 7907a8e

Browse files
committed
fix bug that bert.model-s 'InputMask' NVP didn't accept gpuArray logical-s. I think the simplest thing to do is remove validation altogether.
1 parent 774eb6d commit 7907a8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

+bert/model.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
arguments
5252
x dlarray {mustBeNumericDlarray,mustBeNonempty}
5353
parameters {mustBeA(parameters,'struct')}
54-
nvp.InputMask {mustBeALogicalOrDlarrayLogical} = logical.empty()
54+
nvp.InputMask = logical.empty()
5555
nvp.DropoutProb (1,1) {mustBeNonnegative,mustBeLessThanOrEqual(nvp.DropoutProb,1),mustBeNumeric} = 0
5656
nvp.AttentionDropoutProb (1,1) {mustBeNonnegative,mustBeLessThanOrEqual(nvp.AttentionDropoutProb,1),mustBeNumeric} = 0
5757
nvp.Outputs {mustBePositive,mustBeLessThanOrEqualNumLayers(nvp.Outputs,parameters),mustBeInteger,mustBeNumeric} = parameters.Hyperparameters.NumLayers

0 commit comments

Comments
 (0)