You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@singa.apache.org by wa...@apache.org on 2016/06/23 13:52:31 UTC

[2/2] incubator-singa git commit: SINGA-200 - Implement Encoder and Decoder for data pre-processing

SINGA-200 - Implement Encoder and Decoder for data pre-processing

Add src/proto/io.proto, which was missed in the previous commit.


Project: http://git-wip-us.apache.org/repos/asf/incubator-singa/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-singa/commit/14d31a44
Tree: http://git-wip-us.apache.org/repos/asf/incubator-singa/tree/14d31a44
Diff: http://git-wip-us.apache.org/repos/asf/incubator-singa/diff/14d31a44

Branch: refs/heads/dev
Commit: 14d31a44f49c0cf82aa790e1ca3b18a7636ea2cc
Parents: 913f45c
Author: Wei Wang <wa...@comp.nus.edu.sg>
Authored: Thu Jun 23 21:51:50 2016 +0800
Committer: Wei Wang <wa...@comp.nus.edu.sg>
Committed: Thu Jun 23 21:51:50 2016 +0800

----------------------------------------------------------------------
 src/proto/io.proto | 37 +++++++++++++++++++++++++++++++++++++
 1 file changed, 37 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-singa/blob/14d31a44/src/proto/io.proto
----------------------------------------------------------------------
diff --git a/src/proto/io.proto b/src/proto/io.proto
new file mode 100644
index 0000000..788b235
--- /dev/null
+++ b/src/proto/io.proto
@@ -0,0 +1,37 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package singa;
+
+
+message EncoderConf {
+  optional string type = 1 [default = "jpg2proto"];
+  optional string image_dim_order = 2 [default = "HWC"];
+}
+
+message DecoderConf {
+  optional string type = 1 [default = "proto2jpg"];
+  optional string image_dim_order = 2 [default = "CHW"];
+}
+
+
+message ImageRecord {
+  repeated int32 shape = 1;
+  repeated int32 label = 2;
+  optional bytes pixel = 3;
+}