Subreport: Logs for com.simiacryptus.ref.lang.ReferenceCountingBase
Using Seed 5813425215296323584
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.cudnn.ImgTileSelectLayer",
"id": "ab0f7b2f-ce61-4b81-9132-14ee8bb27780",
"isFrozen": false,
"name": "ImgTileSelectLayer",
"sizeX": 4,
"sizeY": 3,
"positionX": 0,
"positionY": 0,
"precision": "Double"
}
Wrote Model to ImgTileSelectLayer_jsonTest.json; 264 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.511",
"gc_time": "0.184"
},
"created_on": 1586736578210,
"file_name": "jsonTest",
"report": {
"simpleName": "UL",
"canonicalName": "com.simiacryptus.mindseye.layers.cudnn.ImgTileSelectLayerTest.UL",
"link": "https://github.com/SimiaCryptus/mindseye-cudnn/tree/59d5b3318556370acb2d83ee6ec123ce0fc6974f/src/test/java/com/simiacryptus/mindseye/layers/cudnn/ImgTileSelectLayerTest.java",
"javaDoc": ""
},
"archive": "s3://code.simiacrypt.us/tests/com/simiacryptus/mindseye/layers/cudnn/ImgTileSelectLayer/UL/jsonTest/202004130937",
"id": "454c907c-9cf4-4c07-aac4-4a50aeab2b91",
"report_type": "Components",
"display_name": "JSON Serialization",
"target": {
"simpleName": "ImgTileSelectLayer",
"canonicalName": "com.simiacryptus.mindseye.layers.cudnn.ImgTileSelectLayer",
"link": "https://github.com/SimiaCryptus/mindseye-cudnn/tree/59d5b3318556370acb2d83ee6ec123ce0fc6974f/src/main/java/com/simiacryptus/mindseye/layers/cudnn/ImgTileSelectLayer.java",
"javaDoc": ""
}
}