addInputs(_:lossLabels:lossLabelWeights:)
Adds the inputs, loss labels, and loss label weights that you specify to the training graph.
Declaration
func addInputs(_ inputs: [String : MLCTensor], lossLabels: [String : MLCTensor]?, lossLabelWeights: [String : MLCTensor]?) -> BoolParameters
- inputs:
A dictionary that contains inputs.
- lossLabels:
A dictionary that contains loss label inputs.
- lossLabelWeights:
A dictionary that contains loss label weights.
Return Value
true if the operation was successful.
Discussion
Each input, loss label, or label weights tensor has a string identifier. When you execute the training graph, the string identifies which data object is the input for each tensor whose device memory requires updating before the framework actually executes the graph.