| 1093 | } |
| 1094 | |
| 1095 | PyTensor PyTensor::std(std::optional<int> dim, bool keepdim) const { |
| 1096 | if (dim.has_value()) { |
| 1097 | return PyTensor(tensor_.std(*dim, keepdim)); |
| 1098 | } |
| 1099 | return PyTensor(tensor_.std()); |
| 1100 | } |
| 1101 | |
| 1102 | PyTensor PyTensor::var(std::optional<int> dim, bool keepdim) const { |
| 1103 | if (dim.has_value()) { |