-
Couldn't load subscription status.
- Fork 138
Explicitly qualify LearningPhase.inference to prevent ambiguity err…
#92
Conversation
|
I want to figure out why this is the case though. It wasn't a problem until the Int32 patch. |
|
Did you try |
|
I think I did, but I'm not 100% sure. It seems tests are failing because you haven't updated them. |
…ors. Fixes `swift build` and `swift test`.
474aba3 to
b3cc7af
Compare
|
Thanks @dan-zheng This is blocking me too. :-) |
|
After merging It seems related to changes introduced in #71. |
|
Darn. We should remove the |
|
I tried removing diff --git a/Sources/DeepLearning/Layer.swift b/Sources/DeepLearning/Layer.swift
index ca2c333..b8f6926 100644
--- a/Sources/DeepLearning/Layer.swift
+++ b/Sources/DeepLearning/Layer.swift
@@ -1276,7 +1276,6 @@ public protocol RNNCell: Layer where Input == RNNCellInput<TimeStepInput, State>
/// The state that may be preserved across time steps.
associatedtype State: Differentiable
/// The zero state.
- @differentiable
var zeroState: State { get }
}
@@ -1303,7 +1302,6 @@ public struct SimpleRNNCell<Scalar: TensorFlowFloatingPoint>: RNNCell {
return TensorShape([1, weight.shape[1]])
}
- @differentiable
public var zeroState: Tensor<Scalar> {
return Tensor(zeros: stateShape)
}
@@ -1349,7 +1347,6 @@ public struct LSTMCell<Scalar: TensorFlowFloatingPoint>: RNNCell {
return TensorShape([1, inputWeight.shape[1]])
}
- @differentiable
public var zeroState: State {
return State(cell: Tensor(zeros: stateShape), hidden: Tensor(zeros: stateShape))
}Narrowing down the bug now. |
|
Looks like zero emission is doing something funny. I do wonder what it's emitting a zero for. |
|
Filed TF-440 with full log. |
|
Fixing now. |
…ors.
Fixes
swift build. Without this change,swift buildfails: