Skip to content

Commit

Permalink
Small fix - createUninitialized scalar utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexDBlack committed Mar 12, 2019
1 parent e4592dc commit 3c4786f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4880,8 +4880,12 @@ public static INDArray createUninitialized(DataType type, long... shape) {
}

public static INDArray createUninitialized(DataType type, long[] shape, char ordering) {
if (shape.length == 0)
if (shape.length == 0) {
if(type == DataType.UTF8){
return scalar("");
}
return scalar(type, 0);
}

checkShapeValues(shape);

Expand Down

0 comments on commit 3c4786f

Please sign in to comment.