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.

IProtoBuf.cs 841 B

1234567891011121314151617181920212223242526
  1. namespace Tensorflow
  2. {
  3. /// <summary>
  4. /// In order for a object to be serialized to and from MetaGraphDef,
  5. /// the class must implement to_proto() and from_proto() methods
  6. /// </summary>
  7. public interface IProtoBuf<TProtoDef, TDef>
  8. {
  9. string Name { get; }
  10. /// <summary>
  11. /// Converts a `Variable` to a `VariableDef` protocol buffer.
  12. /// </summary>
  13. /// <param name="export_scope"></param>
  14. /// <returns></returns>
  15. TProtoDef to_proto(string export_scope);
  16. /// <summary>
  17. /// Returns a `Variable` object created from `variable_def`.
  18. /// </summary>
  19. /// <param name="proto"></param>
  20. /// <param name="import_scope"></param>
  21. /// <returns></returns>
  22. TDef from_proto(TProtoDef proto, string import_scope);
  23. }
  24. }