1// Copyright (c) 2017, Apple Inc. All rights reserved. 2// 3// Use of this source code is governed by a BSD-3-clause license that can be 4// found in LICENSE.txt or at https://opensource.org/licenses/BSD-3-Clause 5 6syntax = "proto3"; 7option optimize_for = LITE_RUNTIME; 8 9import public "FeatureTypes.proto"; 10 11package CoreML.Specification; 12 13/** 14 * A mapping from a string 15 * to a 64-bit integer. 16 */ 17message StringToInt64Map { 18 map<string, int64> map = 1; 19} 20 21/** 22 * A mapping from a 64-bit integer 23 * to a string. 24 */ 25message Int64ToStringMap { 26 map<int64, string> map = 1; 27} 28 29/** 30 * A mapping from a string 31 * to a double-precision floating point number. 32 */ 33message StringToDoubleMap { 34 map<string, double> map = 1; 35} 36 37/** 38 * A mapping from a 64-bit integer 39 * to a double-precision floating point number. 40 */ 41message Int64ToDoubleMap { 42 map<int64, double> map = 1; 43} 44 45/** 46 * A vector of strings. 47 */ 48message StringVector { 49 repeated string vector = 1; 50} 51 52/** 53 * A vector of 64-bit integers. 54 */ 55message Int64Vector { 56 repeated int64 vector = 1; 57} 58 59/** 60 * A vector of floating point numbers. 61 */ 62message FloatVector { 63 repeated float vector = 1; 64} 65 66/** 67 * A vector of double-precision floating point numbers. 68 */ 69message DoubleVector { 70 repeated double vector = 1; 71} 72 73/** 74 * A range of int64 values 75 */ 76message Int64Range { 77 int64 minValue = 1; 78 int64 maxValue = 2; 79} 80 81/** 82 * A set of int64 values 83 */ 84message Int64Set { 85 repeated int64 values = 1; 86} 87 88/** 89 * A range of double values 90 */ 91message DoubleRange { 92 double minValue = 1; 93 double maxValue = 2; 94} 95 96