|
1234567891011121314151617181920212223242526 |
- namespace Tensorflow
- {
- /// <summary>
- /// In order for a object to be serialized to and from MetaGraphDef,
- /// the class must implement to_proto() and from_proto() methods
- /// </summary>
- public interface IProtoBuf<TProtoDef, TDef>
- {
- string Name { get; }
-
- /// <summary>
- /// Converts a `Variable` to a `VariableDef` protocol buffer.
- /// </summary>
- /// <param name="export_scope"></param>
- /// <returns></returns>
- TProtoDef to_proto(string export_scope);
-
- /// <summary>
- /// Returns a `Variable` object created from `variable_def`.
- /// </summary>
- /// <param name="proto"></param>
- /// <param name="import_scope"></param>
- /// <returns></returns>
- TDef from_proto(TProtoDef proto, string import_scope);
- }
- }
|