MCPcopy Create free account
hub / github.com/RenderKit/oidn / setWeight

Method setWeight

core/conv.cpp:60–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 3

addConvMethod · 0.45
addConcatConvMethod · 0.45
updateWeightMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected