|
1 | 1 | using System;
|
2 | 2 | using System.Collections.Generic;
|
3 | 3 | using System.Text;
|
| 4 | +using System.Threading; |
| 5 | +using Tensorflow.Framework.Models; |
4 | 6 | using Tensorflow.Keras.Engine;
|
5 | 7 | using Tensorflow.Keras.Layers;
|
6 | 8 | using Tensorflow.Keras.Losses;
|
7 | 9 | using Tensorflow.Keras.Metrics;
|
| 10 | +using Tensorflow.Keras.Models; |
8 | 11 |
|
9 | 12 | namespace Tensorflow.Keras
|
10 | 13 | {
|
11 | 14 | public interface IKerasApi
|
12 | 15 | {
|
13 |
| - public ILayersApi layers { get; } |
14 |
| - public ILossesApi losses { get; } |
15 |
| - public IMetricsApi metrics { get; } |
16 |
| - public IInitializersApi initializers { get; } |
| 16 | + IInitializersApi initializers { get; } |
| 17 | + ILayersApi layers { get; } |
| 18 | + ILossesApi losses { get; } |
| 19 | + IOptimizerApi optimizers { get; } |
| 20 | + IMetricsApi metrics { get; } |
| 21 | + IModelsApi models { get; } |
17 | 22 |
|
18 | 23 | /// <summary>
|
19 | 24 | /// `Model` groups layers into an object with training and inference features.
|
20 | 25 | /// </summary>
|
21 | 26 | /// <param name="input"></param>
|
22 | 27 | /// <param name="output"></param>
|
23 | 28 | /// <returns></returns>
|
24 |
| - public IModel Model(Tensors inputs, Tensors outputs, string name = null); |
| 29 | + IModel Model(Tensors inputs, Tensors outputs, string name = null); |
| 30 | + |
| 31 | + /// <summary> |
| 32 | + /// Instantiate a Keras tensor. |
| 33 | + /// </summary> |
| 34 | + /// <param name="shape"></param> |
| 35 | + /// <param name="batch_size"></param> |
| 36 | + /// <param name="dtype"></param> |
| 37 | + /// <param name="name"></param> |
| 38 | + /// <param name="sparse"> |
| 39 | + /// A boolean specifying whether the placeholder to be created is sparse. |
| 40 | + /// </param> |
| 41 | + /// <param name="ragged"> |
| 42 | + /// A boolean specifying whether the placeholder to be created is ragged. |
| 43 | + /// </param> |
| 44 | + /// <param name="tensor"> |
| 45 | + /// Optional existing tensor to wrap into the `Input` layer. |
| 46 | + /// If set, the layer will not create a placeholder tensor. |
| 47 | + /// </param> |
| 48 | + /// <returns></returns> |
| 49 | + Tensors Input(Shape shape = null, |
| 50 | + int batch_size = -1, |
| 51 | + string name = null, |
| 52 | + TF_DataType dtype = TF_DataType.DtInvalid, |
| 53 | + bool sparse = false, |
| 54 | + Tensor tensor = null, |
| 55 | + bool ragged = false, |
| 56 | + TypeSpec type_spec = null, |
| 57 | + Shape batch_input_shape = null, |
| 58 | + Shape batch_shape = null); |
25 | 59 | }
|
26 | 60 | }
|
0 commit comments