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.

KerasMetaData.cs 1.6 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using Newtonsoft.Json;
  2. using Newtonsoft.Json.Linq;
  3. using System;
  4. using System.Collections.Generic;
  5. using System.Text;
  6. namespace Tensorflow.Keras.Saving
  7. {
  8. public class KerasMetaData
  9. {
  10. [JsonProperty("name")]
  11. public string Name { get; set; }
  12. [JsonProperty("class_name")]
  13. public string ClassName { get; set; }
  14. [JsonProperty("trainable")]
  15. public bool Trainable { get; set; }
  16. [JsonProperty("dtype")]
  17. public TF_DataType DType { get; set; } = TF_DataType.DtInvalid;
  18. [JsonProperty("is_graph_network")]
  19. public bool IsGraphNetwork { get; set; }
  20. [JsonProperty("shared_object_id")]
  21. public int SharedObjectId { get; set; }
  22. [JsonProperty("must_restore_from_config")]
  23. public bool MustRestoreFromConfig { get; set; }
  24. [JsonProperty("config")]
  25. public JObject Config { get; set; }
  26. [JsonProperty("build_input_shape")]
  27. public KerasShapesWrapper BuildInputShape { get; set; }
  28. [JsonProperty("batch_input_shape")]
  29. public KerasShapesWrapper BatchInputShape { get; set; }
  30. [JsonProperty("activity_regularizer")]
  31. public IRegularizer ActivityRegularizer { get; set; }
  32. [JsonProperty("input_spec")]
  33. public JToken InputSpec { get; set; }
  34. [JsonProperty("stateful")]
  35. public bool? Stateful { get; set; }
  36. [JsonProperty("model_config")]
  37. public KerasModelConfig? ModelConfig { get; set; }
  38. [JsonProperty("sparse")]
  39. public bool Sparse { get; set; }
  40. [JsonProperty("ragged")]
  41. public bool Ragged { get; set; }
  42. }
  43. }