| 159 | }; |
| 160 | |
| 161 | std::vector<int32_t> context_get_shape(IExecutionContext& self, int32_t binding) |
| 162 | { |
| 163 | Dims const shapeOfShape = self.getBindingDimensions(binding); |
| 164 | auto const numVals(utils::volume(shapeOfShape)); |
| 165 | PY_ASSERT_RUNTIME_ERROR(numVals > 0, "Negative values in shape."); |
| 166 | std::vector<int32_t> shape(static_cast<std::size_t>(numVals)); |
| 167 | PY_ASSERT_RUNTIME_ERROR(self.getShapeBinding(binding, shape.data()), "Error in get shape bindings."); |
| 168 | return shape; |
| 169 | }; |
| 170 | |
| 171 | void set_aux_streams(IExecutionContext& self, std::vector<size_t> streamHandle) |
| 172 | { |
nothing calls this directly
no test coverage detected