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.

tf.variable.cs 829 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Tensorflow
  5. {
  6. public static partial class tf
  7. {
  8. public static Operation global_variables_initializer()
  9. {
  10. var g = variables.global_variables();
  11. return variables.variables_initializer(g.ToArray());
  12. }
  13. public static RefVariable get_variable(string name,
  14. TensorShape shape = null,
  15. IInitializer initializer = null,
  16. VariableSynchronization synchronization = VariableSynchronization.AUTO,
  17. VariableAggregation aggregation = VariableAggregation.NONE)
  18. {
  19. var store = variable_scope._get_default_variable_store();
  20. return variable_scope.get_variable_scope().get_variable(store, name, shape: shape);
  21. }
  22. }
  23. }

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