| [ Web Proxy ] |
| Viewing: https://raw.githubusercontent.com/feelsyt/TensorFlow.NET/master/src/TensorflowNET.Hub/tf_utils.cs | [Back] [Original] |
using System;
using System.IO;
namespace Tensorflow.Hub
{
internal class tf_utils
{
public static string bytes_to_readable_str(long? numBytes, bool includeB = false)
{
if (numBytes == null) return numBytes.ToString();
var num = (double)numBytes;
if (num < 1024)
{
return $"{(long)num}{(includeB ? "B" : "")}";
}
num /= 1
| Web Proxy Viewer | New URL | Original Page |