Skip to content

Commit 8ee2e9a

Browse files
committed
Fix the example errors caused by (SciSharp#1022).
1 parent 6340054 commit 8ee2e9a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/TensorFlowNET.Core/Util/ProtoUtils.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public static object GetSingleAttrValue(AttrValue value, AttrValue.ValueOneofCas
1010
{
1111
return valueCase switch
1212
{
13-
AttrValue.ValueOneofCase.S => value.S,
13+
AttrValue.ValueOneofCase.S => value.S.ToStringUtf8(),
1414
AttrValue.ValueOneofCase.I => value.I,
1515
AttrValue.ValueOneofCase.F => value.F,
1616
AttrValue.ValueOneofCase.B => value.B,

‎src/TensorFlowNET.Core/Variables/ResourceVariable.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ private void _init_from_args(object initial_value = null,
174174

175175
base.__init__(trainable: trainable,
176176
shape: shape,
177-
dtype: dtype,
177+
dtype: _dtype,
178178
handle: handle,
179179
name: name,
180180
unique_id: unique_id,

0 commit comments

Comments
 (0)