-
Notifications
You must be signed in to change notification settings - Fork 608
Compiling Parameterized struct results in Abort trap: 6 #60
Comments
I cannot reproduce the crasher using the latest head of the tree, so the crasher may have been fixed. However, I'm getting the following error: ➜ Downloads swift -O test.swift
test.swift:23:7: warning: initialization of immutable value 'w1' was never used; consider replacing with assignment to '_' or removing it
let w1 = Tensor<Float64>(randomUniform: [4, 4, 3, 8])
~~~~^~
_
test.swift:42:9: warning: immutable value 'yPredicted' was never used; consider replacing with '_' or removing it
let (yPredicted, loss, gradients) = evaluateCost(x: x, y: y)
^~~~~~~~~~
_
test.swift:45:4: error: overlapping accesses to 'self', but modification requires exclusive access; consider copying to a local variable
allParameters.update(withGradients: gradients)
^~~~~~~~~~~~~
test.swift:47:21: note: conflicting access is here
param -= grad * learningRate
^~~~~~~~~~~~
test.swift:24:2: error: return from initializer without initializing all stored properties
}
^
test.swift:15:19: note: 'self.w1' not initialized
@TFParameter var w1: Tensor<Float64>
^ I'll investigate this in the next few days. |
try the github branch on referenced ticket |
If I set ENABLE_TESTABILITY = NO; UPDATE - The model was refactored without registering to parameters / and then works. |
…tribute. No part of the compiler, including the Clang importer, should synthesize an attribute that would fail early attribute validation. When it happens, it would emit diagnostics with no location information, which is really annoyingly hard to debug. Instead, assert that this doesn't happen, i.e., both that the Clang importer doesn't synthesize bogus attributes (as in the previous commit) and that nothing synthesizes such attributes with empty source location informations. In non-asserting builds, just suppress the diagnostic.
|
* Update samples to not use Ingress. This is follow-up of knative/serving#1228. We moved to Istio v1alpha3 / Gateway which requires a different way to get the external IP address to send traffic to our samples. * Also update the command to find service domain.
Source attached.
Compilation results:
Test.swift.zip
The text was updated successfully, but these errors were encountered: