Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update newline character #1419

Merged
merged 17 commits into from
Dec 2, 2024
Merged
Prev Previous commit
Next Next commit
fix typo
  • Loading branch information
alinpahontu2912 authored Nov 28, 2024
commit 445106d73595ee5f0a3333736a3b5923dff1a27e
2 changes: 1 addition & 1 deletion src/TorchSharp/Tensor/TensorExtensionMethods.cs
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public static string cstr(this Tensor tensor, string? fltFormat = "g5", int? wid
/// The style to use -- either 'default,' 'metadata,' 'julia,' or 'numpy'
/// </param>
/// <returns></returns>
public static Tensor print(this Tensor t, string? fltFormat = "g5", int? width = 100, string? newLine = Environment.newLine, CultureInfo? cultureInfo = null, TensorStringStyle style = TensorStringStyle.Default)
public static Tensor print(this Tensor t, string? fltFormat = "g5", int? width = 100, string? newLine = Environment.NewLine, CultureInfo? cultureInfo = null, TensorStringStyle style = TensorStringStyle.Default)
{
Console.Write(t.ToString(style, fltFormat, width, cultureInfo, newLine));
return t;
Expand Down