Browse Source

Tensor.Operations: Reverted commit

tags/v0.12
Eli Belash 6 years ago
parent
commit
667a56661f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/TensorFlowNET.Core/Tensors/Tensor.Operators.cs

+ 2
- 2
src/TensorFlowNET.Core/Tensors/Tensor.Operators.cs View File

@@ -123,7 +123,7 @@ namespace Tensorflow
if (y is Tensor tr)
dtype = tr.dtype.as_base_dtype();

using (var scope = ops.name_scope(null, name, new { x, y }))
return tf_with(ops.name_scope(null, name, new { x, y }), scope =>
{
Tensor result = null;
var x1 = ops.convert_to_tensor(x, dtype: dtype, name: "x");
@@ -154,7 +154,7 @@ namespace Tensorflow
}

return result;
}
});
}
}
}

Loading…
Cancel
Save