Missed TensorFlow Dev Summit? Check out the video playlist. Watch recordings

Float

extension Float: TensorFlowFloatingPoint
extension Float: TensorFlowScalar
extension Float : EuclideanDifferentiable
extension Float : VectorProtocol
extension Float: ElementaryFunctions
extension Float : NumpyScalarCompatible
extension Float : PythonConvertible, ConvertibleFromPython
  • Declaration

    public static var tensorFlowDataType: TensorDataType { get }
  • Declaration

    public typealias TangentVector = Float
  • Declaration

    public mutating func move(along direction: TangentVector)
  • Declaration

    public typealias VectorSpaceScalar = Float
  • Declaration

    public func adding(_ x: Float) -> Float
  • Declaration

    public mutating func add(_ x: Float)
  • Declaration

    public func subtracting(_ x: Float) -> Float
  • Declaration

    public mutating func subtract(_ x: Float)
  • Declaration

    public func scaled(by scalar: Float) -> Float
  • Declaration

    public mutating func scale(by scalar: Float)
  • Declaration

    @_alwaysEmitIntoClient
    public static func sqrt(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func cos(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func sin(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func tan(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func acos(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func asin(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func atan(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func cosh(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func sinh(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func tanh(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func acosh(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func asinh(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func atanh(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func exp(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func exp2(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func exp10(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func expm1(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func log(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func log2(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func log10(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func log1p(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func erf(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func erfc(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func hypot(_ x: Float, _ y: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func gamma(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func pow(_ x: Float, _ y: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func pow(_ x: Float, _ n: Int) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func root(_ x: Float, _ n: Int) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func atan2(y: Float, x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func logGamma(_ x: Float) -> Float
  • Declaration

    @_alwaysEmitIntoClient
    public static func signGamma(_ x: Float) -> FloatingPointSign
  • Declaration

    public static let numpyScalarTypes: [PythonObject]
  • Declaration

    public static var ctype: PythonObject { get }
  • Declaration

    public init?(_ pythonObject: PythonObject)
  • Declaration

    public var pythonObject: PythonObject { get }