Contents

node(with:sources:disableUpdate:)

Adds the layer, source tensors, and option to disable optimizer updates that you specify to the graph.

Declaration

func node(with layer: MLCLayer, sources: [MLCTensor], disableUpdate: Bool) -> MLCTensor?

Parameters

  • layer:

    The layer.

  • sources:

    An array that contains the source tensors.

  • disableUpdate:

    A Boolean that indicates whether you choose to disable the optimizer updates for this layer.

Return Value

A result tensor.

See Also

Adding Layers to Graphs