DatatypeConversion
public final class DatatypeConversion : Model
DatatypeConversion model.
-
Declaration
Swift
public init(_ dataType: DataType?, sameAsLast: Bool = false, name: String = "")
-
Declaration
Swift
public func callAsFunction<T: DynamicGraph.TensorGroup, U: DynamicGraph.TensorGroup>( _ x: T, sameAs: U, streamContext: StreamContext? = nil ) -> U where T.AnyTensor == U.AnyTensor
-
Declaration
Swift
public func callAsFunction<T: DynamicGraph.TensorGroup, U: DynamicGraph.TensorGroup>( _ x: T, of type: U.ElementNumeric.Type, sameAs: U.Type = U.self, streamContext: StreamContext? = nil ) -> U where T.AnyTensor == U.AnyTensor