(&self, vm: &VirtualMachine)
| 591 | |
| 592 | #[pygetset] |
| 593 | fn shape(&self, vm: &VirtualMachine) -> PyResult<PyTupleRef> { |
| 594 | self.try_not_released(vm)?; |
| 595 | Ok(vm.ctx.new_tuple( |
| 596 | self.desc |
| 597 | .dim_desc |
| 598 | .iter() |
| 599 | .map(|(shape, _, _)| shape.to_pyobject(vm)) |
| 600 | .collect(), |
| 601 | )) |
| 602 | } |
| 603 | |
| 604 | #[pygetset] |
| 605 | fn strides(&self, vm: &VirtualMachine) -> PyResult<PyTupleRef> { |
nothing calls this directly
no test coverage detected