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.

VariableArgs.cs 1.1 kB

1234567891011121314151617181920212223242526
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Tensorflow
  5. {
  6. public class VariableArgs
  7. {
  8. public object InitialValue { get; set; }
  9. public Func<VariableArgs, IVariableV1> Getter { get; set; }
  10. public string Name { get; set; }
  11. public TensorShape Shape { get; set; }
  12. public TF_DataType DType { get; set; } = TF_DataType.DtInvalid;
  13. public IInitializer Initializer { get; set; }
  14. public bool Trainable { get; set; }
  15. public bool ValidateShape { get; set; } = true;
  16. public bool UseResource { get; set; } = true;
  17. public bool Overwrite { get; set; }
  18. public List<string> Collections { get; set; }
  19. public string CachingDevice { get; set; } = "";
  20. public VariableDef VariableDef { get; set; }
  21. public string ImportScope { get; set; } = "";
  22. public VariableSynchronization Synchronization { get; set; } = VariableSynchronization.Auto;
  23. public VariableAggregation Aggregation { get; set; } = VariableAggregation.None;
  24. }
  25. }