namespace Tensorflow.Keras.Losses { public interface ILossFunc { public string Reduction { get; } public string Name { get; } Tensor Call(Tensor y_true, Tensor y_pred, Tensor sample_weight = null); } }
tensorflow框架的.NET版本,提供了丰富的特性和API,可以借此很方便地在.NET平台下搭建深度学习训练与推理流程。