TensorFlow.NET icon indicating copy to clipboard operation
TensorFlow.NET copied to clipboard

[Feature Request]: Support multi-output models

Open Utanapishtim31 opened this issue 3 years ago • 0 comments

Background and Feature Description

It is not possible to train a model with several outputs. This is a problem for Actor-Critic models for instance. This is a serious limitation of Tensorflow.NET for the time being.

API Definition and Usage

IModel.compile(IOptimizer, ILossFunc[], IMetricFunc[])

Alternatives

No response

Risks

This does not seem to be very complex to add this feature. Most of the code already exists to handle multi-output. One should compute the loss for each output and sum-reduce the losses to get the final loss.

Utanapishtim31 avatar Oct 18 '23 07:10 Utanapishtim31