namespace Tensorflow.Eager { public class Tape { public static bool IsDtypeTrainable(DataType dtype) { switch (dtype) { case DataType.DtHalf: case DataType.DtBfloat16: case DataType.DtFloat: case DataType.DtDouble: case DataType.DtComplex64: case DataType.DtComplex128: case DataType.DtResource: case DataType.DtVariant: return true; default: return false; } } } }
tensorflow框架的.NET版本,提供了丰富的特性和API,可以借此很方便地在.NET平台下搭建深度学习训练与推理流程。