Make a condition net that copies the condition_blob Args: condition_blob is a single bool. returns not_net: the net NOT the input out_blob: the output blob of the not_net
(condition_blob)
| 151 | |
| 152 | |
| 153 | def _CopyConditionBlobNet(condition_blob): |
| 154 | """Make a condition net that copies the condition_blob |
| 155 | |
| 156 | Args: |
| 157 | condition_blob is a single bool. |
| 158 | |
| 159 | returns |
| 160 | not_net: the net NOT the input |
| 161 | out_blob: the output blob of the not_net |
| 162 | """ |
| 163 | condition_net = core.Net('copy_condition_blob_net') |
| 164 | out_blob = condition_net.Copy(condition_blob) |
| 165 | condition_net.AddExternalOutput(out_blob) |
| 166 | |
| 167 | return condition_net, out_blob |
| 168 | |
| 169 | |
| 170 | def MergeConditionNets(name, condition_nets, relation): |
no test coverage detected
searching dependent graphs…