mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
Summary: Integrate aot flow with model exporter. Test Plan: buck test dper3/dper3_backend/delivery/tests:dper3_model_export_test replayer test see D23407733 Reviewed By: ipiszy Differential Revision: D23313689 fbshipit-source-id: 39ae8d578ed28ddd6510db959b65974a5ff62888
51 lines
1.2 KiB
Protocol Buffer
51 lines
1.2 KiB
Protocol Buffer
syntax = "proto2";
|
|
|
|
import "caffe2/proto/caffe2.proto";
|
|
|
|
package caffe2;
|
|
|
|
message ModelInfo {
|
|
optional string project = 1;
|
|
optional string modelClass = 2;
|
|
optional string version = 3;
|
|
optional string predictorType = 4 [ default = "SINGLE_PREDICTOR" ];
|
|
optional string modelId = 5;
|
|
}
|
|
|
|
message BlobsMap {
|
|
required string key = 1;
|
|
repeated string value = 2;
|
|
}
|
|
|
|
message NetsMap {
|
|
required string key = 1;
|
|
required NetDef value = 2;
|
|
}
|
|
|
|
message PlansMap {
|
|
required string key = 1;
|
|
required PlanDef value = 2;
|
|
}
|
|
|
|
message StringMap {
|
|
required string key = 1;
|
|
required string value = 2;
|
|
}
|
|
|
|
message MetaNetDef {
|
|
repeated BlobsMap blobs = 1;
|
|
// Text-format serialized NetDefs.
|
|
repeated NetsMap nets = 2;
|
|
// Info about where the model comes from. Possible use cases:
|
|
// 1) sanity check or diagnose
|
|
// 2) provide info for evaluation.
|
|
optional ModelInfo modelInfo = 3;
|
|
repeated PlansMap plans = 4;
|
|
repeated StringMap applicationSpecificInfo = 5;
|
|
repeated string blobsOrder = 6;
|
|
repeated string preLoadBlobs = 7;
|
|
optional TensorBoundShapes tensorBoundShapes = 8;
|
|
repeated string requestOnlyEmbeddings = 9;
|
|
optional AOTConfig aotConfig = 10;
|
|
}
|