[SR-9695] [AD] global closure func cannot be AD #52135
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
swift for tensorflow
Additional Detail from JIRA
md5: 19f9cc2ee28117be7197166a9d6f080b
Issue Description:
-> cat simple.swift
let foo1 = { (x: Float, y: Float) -> Float in
return x * y
}
print(gradient(at: 3, 4, in: foo1))
simple.swift:4:31: error: function is not differentiable
print(gradient(at: 3, 4, in: foo1))
The text was updated successfully, but these errors were encountered: