Another small fix (#175)

* Layer norm 4d case fixes

Signed-off-by: AlexDBlack <blacka101@gmail.com>

* Small fix

Signed-off-by: AlexDBlack <blacka101@gmail.com>
master
Alex Black 2019-08-27 19:10:31 +10:00 committed by GitHub
parent dce4751fc1
commit 5cfbeb64ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -341,8 +341,8 @@ public class OpValidation {
//Finally: check execution/output //Finally: check execution/output
Map<String,INDArray> outOrig = original.execAll(tc.placeholderValues()); Map<String,INDArray> outOrig = original.outputAll(tc.placeholderValues());
Map<String,INDArray> outDe = deserialized.execAll(tc.placeholderValues()); Map<String,INDArray> outDe = deserialized.outputAll(tc.placeholderValues());
Preconditions.checkState(outOrig.keySet().equals(outDe.keySet()), "Keysets for execution after deserialization does not match key set for original model"); Preconditions.checkState(outOrig.keySet().equals(outDe.keySet()), "Keysets for execution after deserialization does not match key set for original model");
for(String s : outOrig.keySet()){ for(String s : outOrig.keySet()){

View File

@ -64,6 +64,7 @@ public class DifferentialFunctionClassHolder {
add("outputVariables"); add("outputVariables");
add("tArguments"); add("tArguments");
add("iArguments"); add("iArguments");
add("bArguments");
add("hash"); add("hash");
add("opName"); add("opName");
add("sameDiff"); add("sameDiff");