| 243 | } |
| 244 | |
| 245 | size_t QTensor::n_elements() const { |
| 246 | size_t numel = 1; |
| 247 | for (size_t i = 0; i < shape.size(); i++) { |
| 248 | if (shape[i] > 0) { |
| 249 | numel *= shape[i]; |
| 250 | } |
| 251 | } |
| 252 | return numel; |
| 253 | } |
| 254 | |
| 255 | YALMData::YALMData(const std::string& dirname, bool lock_model_weights) { |
| 256 | if (from_directory(dirname, lock_model_weights) != 0) { |
nothing calls this directly
no outgoing calls
no test coverage detected