Skip to content

Commit 5d16dc6

Browse files
committed
Tensor: added missing data types
1 parent 5b49f73 commit 5d16dc6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/TensorFlowNET.Core/Tensors/Tensor.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,8 @@ public TF_DataType ToTFDataType(Type type)
191191
return TF_DataType.TF_INT16;
192192
case "Int32":
193193
return TF_DataType.TF_INT32;
194+
case "Int64":
195+
return TF_DataType.TF_INT64;
194196
case "Single":
195197
return TF_DataType.TF_FLOAT;
196198
case "Double":
@@ -199,6 +201,8 @@ public TF_DataType ToTFDataType(Type type)
199201
return TF_DataType.TF_UINT8;
200202
case "String":
201203
return TF_DataType.TF_STRING;
204+
case "Boolean":
205+
return TF_DataType.TF_BOOL;
202206
default:
203207
throw new NotImplementedException("ToTFDataType error");
204208
}

0 commit comments

Comments
 (0)