Skip to content

Commit 1fb41de

Browse files
committed
add name property #133
1 parent ca1fa35 commit 1fb41de

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/TensorFlowNET.Core/Variables/RefVariable.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ public class RefVariable : VariableV1
1717
public Operation initializer => _initializer_op;
1818
public Operation op => _initializer_op;
1919

20+
public string name => _variable.name;
21+
2022
public RefVariable(object initial_value,
2123
bool trainable = true,
2224
List<string> collections = null,

0 commit comments

Comments
 (0)