mathias-brandewinder / CNTK.FSharp

MIT License
67 stars 9 forks source link

Implicit conversion of Function to Variable #2

Open mathias-brandewinder opened 6 years ago

mathias-brandewinder commented 6 years ago

Built-in functions, such as CNTKLib.ElementTimes, typically expect one or more Variable(s) as an input, but return a Function. As a result, composition in F# requires explicit conversions everywhere, to convert the output of a Function into a Variable so that it can be passed forward to another function, which makes direct composition difficult.