Skip to content

Commit

Permalink
value update
Browse files Browse the repository at this point in the history
  • Loading branch information
Dartrisen committed Aug 21, 2024
1 parent 471f0af commit 882a921
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions Sources/SwiftGrad/value.swift
Original file line number Diff line number Diff line change
@@ -1,25 +1,5 @@
import Foundation

protocol BinaryOperations {
static func + (lhs: Self, rhs: Self) -> Self
static func + (lhs: Self, rhs: Double) -> Self
static func + (lhs: Double, rhs: Self) -> Self
static func - (lhs: Self, rhs: Self) -> Self
static func - (lhs: Self, rhs: Double) -> Self
static prefix func - (v: Self) -> Self
static func * (lhs: Self, rhs: Self) -> Self
static func * (lhs: Double, rhs: Self) -> Self
static func * (lhs: Self, rhs: Double) -> Self
static func / (lhs: Self, rhs: Self) -> Self
static func / (lhs: Self, rhs: Double) -> Self
static func / (lhs: Double, rhs: Self) -> Self
}

protocol UnaryOperations {
func tanh() -> Self
func exp() -> Value
}

infix operator **: MultiplicationPrecedence

/// Represents a value in the computational graph, with support for automatic differentiation.
Expand Down

0 comments on commit 882a921

Please sign in to comment.