|
|
@@ -16,7 +16,7 @@ namespace Tensorflow |
|
|
|
|
|
|
|
private Operation _initializer_op; |
|
|
|
public Operation initializer => _initializer_op; |
|
|
|
public Operation op => _initializer_op; |
|
|
|
public Operation op => _variable.op; |
|
|
|
|
|
|
|
public string name => _variable.name; |
|
|
|
|
|
|
@@ -77,7 +77,7 @@ namespace Tensorflow |
|
|
|
|
|
|
|
var shape = _initial_value.shape; |
|
|
|
dtype = _initial_value.dtype; |
|
|
|
_variable = gen_state_ops.variable_v2(shape, dtype, name); |
|
|
|
_variable = gen_state_ops.variable_v2(shape, dtype.as_base_dtype(), name); |
|
|
|
} |
|
|
|
|
|
|
|
// Manually overrides the variable's shape with the initial value's. |
|
|
|