You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
- using System.Collections.Generic;
- using System.Text;
-
- namespace Tensorflow.Device
- {
- internal static class DeviceUtils
- {
- public static string canonical_name(string device)
- {
- if(device is null)
- {
- return "";
- }
- return DeviceSpec.from_string(device).ToString();
- }
- public static string canonical_name(DeviceSpec device)
- {
- if (device is null)
- {
- return "";
- }
- return device.ToString();
- }
- }
- }
|