| 76 | class GeometryRank : public GeometryComputer { |
| 77 | public: |
| 78 | virtual bool onCompute(const Op* op, const std::vector<Tensor*>& inputs, const std::vector<Tensor*>& outputs, |
| 79 | Context& context, CommandBuffer& res) const override { |
| 80 | if (nullptr == TensorUtils::getDescribeOrigin(outputs[0])->mem.get()) { |
| 81 | if(!context.allocTensor(outputs[0])) { |
| 82 | return false; |
| 83 | } |
| 84 | } |
| 85 | outputs[0]->host<int>()[0] = inputs[0]->buffer().dimensions; |
| 86 | return true; |
| 87 | } |
| 88 | }; |
| 89 | |
| 90 | class GeometryPriorBox : public GeometryComputer { |
nothing calls this directly
no test coverage detected