| 34 | namespace lambdas |
| 35 | { |
| 36 | Weights optionalWeights(Weights* weights) |
| 37 | { |
| 38 | if (weights) |
| 39 | { |
| 40 | return *weights; |
| 41 | } |
| 42 | return Weights{DataType::kFLOAT, nullptr, 0}; |
| 43 | } |
| 44 | |
| 45 | static const auto get_dynamic_range = [] (ITensor const& self) -> py::object { |
| 46 | if (self.dynamicRangeIsSet()) { |
no outgoing calls
no test coverage detected