| 58 | } |
| 59 | |
| 60 | void Conv::setWeight(const Ref<Tensor>& weight) |
| 61 | { |
| 62 | if (!weight || weight->getDesc() != weightDesc) |
| 63 | throw std::invalid_argument("invalid convolution weight"); |
| 64 | |
| 65 | this->weight = weight; |
| 66 | updateWeight(); |
| 67 | } |
| 68 | |
| 69 | void Conv::setBias(const Ref<Tensor>& bias) |
| 70 | { |
no outgoing calls
no test coverage detected