)]}'
{
  "commit": "8ab7bed08437f578d94996f2f52d30a6c044a0bf",
  "tree": "2fc567494d15b46f3f6bc11dff1f4e777d2d0033",
  "parents": [
    "8b2f071200a6b7f0edf4f19105dbc0c3052e0b8c"
  ],
  "author": {
    "name": "Lun Dong",
    "email": "lundong@google.com",
    "time": "Thu Mar 03 19:29:53 2022 +0000"
  },
  "committer": {
    "name": "Lun Dong",
    "email": "lundong@google.com",
    "time": "Fri Mar 04 02:43:40 2022 +0000"
  },
  "message": "Add unit tests for RISP4ML\n\nThis CL is Part 3 of the comprehensive 3-part changes of integrating RISP4ML into Shodan ML toolchain. This change focuses on adding unit tests for RISP4ML based on pw_unit_test.\nI have verifed that all unit tests passed.\n\nDetails of the 3-part changes:\n\n(Part 1) Completely re-wrote RISP4ML in plain C (merged)\n- The original RISP4ML on google3 was written in C++. The memory usage with C++ RISP4ML was significantly larger. Thus, I have completely re-written RISP4ML in plain C. The memory increase with the plain-C RISP4ML is much smaller.\n- Made the input/output shape to be configurable arguments instead of constants.\n- Made low-level optimizations and simplifications.\n\n(Part 2) Integrated plain-C RISP4ML into Shodan ML toolchain (merged)\n- Use fssd_25_8bit_v2 as an example to load the binary (raw bayer) file and go through RISP4ML toolchain, and feed the RISP4ML output into IREE flow.\n- The fssd_25_8bit_v2 example is up and running, and the correctness of output has been verified (compare output@plain-C risp4ml against output@google3).\n\n(Part 3) Added unit tests for plain-C RISP4ML (this CL)\n- Added unit tests based on pw_unit_test\n- Build unit tests in iree_cc_binary\n- Run and check unit tests via lit_test\n\nChange-Id: I9c01792dd8e35176cbc16e18bf2f9c17d5f801b7\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5f0802fc49a21afc07c718ad18830d0c4c0b3b04",
      "old_mode": 33188,
      "old_path": "CMakeLists.txt",
      "new_id": "52f6a55e653d06dc54b1f88cd6e4603f616eee8c",
      "new_mode": 33188,
      "new_path": "CMakeLists.txt"
    },
    {
      "type": "modify",
      "old_id": "49346c1d39896e3503cb36c05dd7a9c2437095b5",
      "old_mode": 33188,
      "old_path": "samples/risp4ml/common/CMakeLists.txt",
      "new_id": "793f9336ebc68e752774d036bec19b0afd47a6b7",
      "new_mode": 33188,
      "new_path": "samples/risp4ml/common/CMakeLists.txt"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "a2fb28d7b2c519c7c61fb75b6082d720c68ff74c",
      "new_mode": 33188,
      "new_path": "samples/risp4ml/common/image_test.cc"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "beeed75d0a45dbc0f80b18fcf4fbffa2b86273d1",
      "new_mode": 33188,
      "new_path": "samples/risp4ml/common/image_test.txt"
    },
    {
      "type": "modify",
      "old_id": "54022b755982d5dd28394c5c0459228b19038804",
      "old_mode": 33188,
      "old_path": "samples/risp4ml/isp_stages/CMakeLists.txt",
      "new_id": "bc2c798c2171507457c37ac852f5f91d12be9c6e",
      "new_mode": 33188,
      "new_path": "samples/risp4ml/isp_stages/CMakeLists.txt"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "193504894ffb075b1f5e537887f9694afbe52ea6",
      "new_mode": 33188,
      "new_path": "samples/risp4ml/isp_stages/blc_test.cc"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "608d615a7c4b2466fe6ef9ff21bb47560e543b93",
      "new_mode": 33188,
      "new_path": "samples/risp4ml/isp_stages/blc_test.txt"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "cf3b7dc831b7d80dbae078fba09e325e6973ddfa",
      "new_mode": 33188,
      "new_path": "samples/risp4ml/isp_stages/dg_test.cc"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "791373423e114c80f498e51f24f049bef1142c35",
      "new_mode": 33188,
      "new_path": "samples/risp4ml/isp_stages/dg_test.txt"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "f679b0be6f314c692e972defbe3f6fc06bac1865",
      "new_mode": 33188,
      "new_path": "samples/risp4ml/isp_stages/downscale_test.cc"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "5cd708fa66eaeca1108ff401b8a200c061790ce8",
      "new_mode": 33188,
      "new_path": "samples/risp4ml/isp_stages/downscale_test.txt"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "9adc32cf01dc945c7aacd0bb4e013b5841c763a8",
      "new_mode": 33188,
      "new_path": "samples/risp4ml/isp_stages/gamma_test.cc"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "453890d6e3dba43d728030198335c2514901bba0",
      "new_mode": 33188,
      "new_path": "samples/risp4ml/isp_stages/gamma_test.txt"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "012a5c7294249cf5b279bb3d05f33bc2e49713d1",
      "new_mode": 33188,
      "new_path": "samples/risp4ml/isp_stages/wbg_test.cc"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "7a35387dedff43c9f18f91f60b9dc0a0a6744818",
      "new_mode": 33188,
      "new_path": "samples/risp4ml/isp_stages/wbg_test.txt"
    }
  ]
}
