Loss
public protocol Loss
A generic loss function protocol.
-
Declaration
Swift
func callAsFunction<T: DynamicGraph.AnyTensorGroup, U: DynamicGraph.AnyTensorGroup>( _ input: T, target: U, streamContext: StreamContext? ) -> [T.AnyTensor] where T.AnyTensor == U.AnyTensor
-
callAsFunction(_:
Extension methodtarget: ) Declaration
Swift
public func callAsFunction<T: DynamicGraph.AnyTensorGroup, U: DynamicGraph.AnyTensorGroup>( _ input: T, target: U ) -> [T.AnyTensor] where T.AnyTensor == U.AnyTensor