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.

variables.py.cs 421 B

123456789101112131415161718
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Tensorflow
  5. {
  6. public class variables
  7. {
  8. /// <summary>
  9. /// Returns all variables created with `trainable=True`
  10. /// </summary>
  11. /// <returns></returns>
  12. public static object trainable_variables()
  13. {
  14. return ops.get_collection(ops.GraphKeys.TRAINABLE_VARIABLES);
  15. }
  16. }
  17. }

tensorflow框架的.NET版本,提供了丰富的特性和API,可以借此很方便地在.NET平台下搭建深度学习训练与推理流程。