blob: 6ebdcfdcad404b8eb770059ffded2ea4d7c5a9cb [file] [log] [blame]
// chromeos/services/machine_learning/public/mojom/tensor.mojom-lite-for-compile.js is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
goog.require('mojo.internal');
goog.provide('chromeos.machineLearning.mojom.StringListSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
chromeos.machineLearning.mojom.StringListSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('chromeos.machineLearning.mojom.FloatListSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
chromeos.machineLearning.mojom.FloatListSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('chromeos.machineLearning.mojom.Int64ListSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
chromeos.machineLearning.mojom.Int64ListSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('chromeos.machineLearning.mojom.TensorSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
chromeos.machineLearning.mojom.TensorSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('chromeos.machineLearning.mojom.ValueListSpec');
/**
* @const { {$:!mojo.internal.MojomType} }
* @export
*/
chromeos.machineLearning.mojom.ValueListSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
mojo.internal.Struct(
chromeos.machineLearning.mojom.StringListSpec.$,
'StringList',
[
mojo.internal.StructField(
'value', 0,
0,
mojo.internal.Array(mojo.internal.String, false),
null,
false /* nullable */),
],
[[0, 16],]);
goog.provide('chromeos.machineLearning.mojom.StringList');
/** @record */
chromeos.machineLearning.mojom.StringList = class {
constructor() {
/** @export { !Array<!string> } */
this.value;
}
};
mojo.internal.Struct(
chromeos.machineLearning.mojom.FloatListSpec.$,
'FloatList',
[
mojo.internal.StructField(
'value', 0,
0,
mojo.internal.Array(mojo.internal.Double, false),
null,
false /* nullable */),
],
[[0, 16],]);
goog.provide('chromeos.machineLearning.mojom.FloatList');
/** @record */
chromeos.machineLearning.mojom.FloatList = class {
constructor() {
/** @export { !Array<!number> } */
this.value;
}
};
mojo.internal.Struct(
chromeos.machineLearning.mojom.Int64ListSpec.$,
'Int64List',
[
mojo.internal.StructField(
'value', 0,
0,
mojo.internal.Array(mojo.internal.Int64, false),
null,
false /* nullable */),
],
[[0, 16],]);
goog.provide('chromeos.machineLearning.mojom.Int64List');
/** @record */
chromeos.machineLearning.mojom.Int64List = class {
constructor() {
/** @export { !Array<!bigint> } */
this.value;
}
};
mojo.internal.Struct(
chromeos.machineLearning.mojom.TensorSpec.$,
'Tensor',
[
mojo.internal.StructField(
'data', 0,
0,
chromeos.machineLearning.mojom.ValueListSpec.$,
null,
false /* nullable */),
mojo.internal.StructField(
'shape', 16,
0,
chromeos.machineLearning.mojom.Int64ListSpec.$,
null,
false /* nullable */),
],
[[0, 32],]);
goog.provide('chromeos.machineLearning.mojom.Tensor');
/** @record */
chromeos.machineLearning.mojom.Tensor = class {
constructor() {
/** @export { !chromeos.machineLearning.mojom.ValueList } */
this.data;
/** @export { !chromeos.machineLearning.mojom.Int64List } */
this.shape;
}
};
goog.provide('chromeos.machineLearning.mojom.ValueList');
mojo.internal.Union(
chromeos.machineLearning.mojom.ValueListSpec.$, 'ValueList',
{
'stringList': {
'ordinal': 0,
'type': chromeos.machineLearning.mojom.StringListSpec.$,
},
'floatList': {
'ordinal': 1,
'type': chromeos.machineLearning.mojom.FloatListSpec.$,
},
'int64List': {
'ordinal': 2,
'type': chromeos.machineLearning.mojom.Int64ListSpec.$,
},
});
/**
* @typedef { {
* stringList: (!chromeos.machineLearning.mojom.StringList|undefined),
* floatList: (!chromeos.machineLearning.mojom.FloatList|undefined),
* int64List: (!chromeos.machineLearning.mojom.Int64List|undefined),
* } }
*/
chromeos.machineLearning.mojom.ValueList;