(net)
| 60 | |
| 61 | |
| 62 | def init_qat_net(net): |
| 63 | if net.with_weight: |
| 64 | net.weight_observer.min_val[...] = Tensor(min_val[0]) |
| 65 | net.weight_observer.max_val[...] = Tensor(max_val[0]) |
| 66 | if net.with_act: |
| 67 | net.act_observer.min_val[...] = Tensor(min_val[1]) |
| 68 | net.act_observer.max_val[...] = Tensor(max_val[1]) |
| 69 | |
| 70 | |
| 71 | def test_quant_stub(): |
no test coverage detected