Subreport: Logs for com.simiacryptus.ref.lang.ReferenceCountingBase
Using Seed 5361538884156567552
This apply will demonstrate the key's JSON serialization, and verify deserialization integrity.
SerializationTest.java:99 executed in 0.00 seconds (0.000 gc):
final JsonObject json = layer.getJson().getAsJsonObject();
@Nonnull final Layer echo = Layer.fromJson(json);
if (layer == echo) {
echo.freeRef();
throw new AssertionError("Serialization did not copy");
}
if (!layer.equals(echo)) {
echo.freeRef();
throw new AssertionError("Serialization not equal");
}
echo.freeRef();
return json;
Returns
{
"class": "com.simiacryptus.mindseye.layers.java.NthPowerActivationLayer",
"id": "be7f71a8-df0b-42d9-925a-a131fc85feea",
"isFrozen": false,
"name": "NthPowerActivationLayer",
"power": -0.5
}
Wrote Model to NthPowerActivationLayer_jsonTest.json; 201 characters
LayerTests.java:425 executed in 0.00 seconds (0.000 gc):
throwException(exceptions.addRef());
class | result |
---|---|
com.simiacryptus.mindseye.test.unit.SerializationTest | OK |
{
"result": "OK",
"performance": {
"execution_time": "0.458",
"gc_time": "0.234"
},
"created_on": 1586737343386,
"file_name": "jsonTest",
"report": {
"simpleName": "InvSqrtPowerTest",
"canonicalName": "com.simiacryptus.mindseye.layers.java.NthPowerActivationLayerTest.InvSqrtPowerTest",
"link": "https://github.com/SimiaCryptus/mindseye-java/tree/93db34cedee48c0202777a2b25deddf1dfaf5731/src/test/java/com/simiacryptus/mindseye/layers/java/NthPowerActivationLayerTest.java",
"javaDoc": ""
},
"archive": "s3://code.simiacrypt.us/tests/com/simiacryptus/mindseye/layers/java/NthPowerActivationLayer/InvSqrtPowerTest/jsonTest/202004132222",
"id": "4b4a44f5-e285-4f73-bcad-3b66f8b32bc1",
"report_type": "Components",
"display_name": "JSON Serialization",
"target": {
"simpleName": "NthPowerActivationLayer",
"canonicalName": "com.simiacryptus.mindseye.layers.java.NthPowerActivationLayer",
"link": "https://github.com/SimiaCryptus/mindseye-java/tree/93db34cedee48c0202777a2b25deddf1dfaf5731/src/main/java/com/simiacryptus/mindseye/layers/java/NthPowerActivationLayer.java",
"javaDoc": ""
}
}