repo stringlengths 1 99 | file stringlengths 13 215 | code stringlengths 12 59.2M | file_length int64 12 59.2M | avg_line_length float64 3.82 1.48M | max_line_length int64 12 2.51M | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
lightning | lightning-master/tests/tests_pytorch/trainer/flags/test_check_val_every_n_epoch.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 2,819 | 33.390244 | 100 | py |
lightning | lightning-master/tests/tests_pytorch/trainer/flags/test_val_check_interval.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 4,533 | 34.421875 | 120 | py |
lightning | lightning-master/tests/tests_pytorch/trainer/flags/test_env_vars.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 2,060 | 34.534483 | 89 | py |
lightning | lightning-master/tests/tests_pytorch/trainer/flags/test_overfit_batches.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 6,619 | 37.265896 | 109 | py |
lightning | lightning-master/tests/tests_pytorch/trainer/flags/test_min_max_epochs.py | import pytest
from lightning_utilities.test.warning import no_warning_call
from lightning.fabric.utilities.warnings import PossibleUserWarning
from lightning.pytorch import Trainer
from lightning.pytorch.demos.boring_classes import BoringModel
@pytest.mark.parametrize(
("min_epochs", "max_epochs", "min_steps", "... | 1,856 | 29.95 | 88 | py |
lightning | lightning-master/tests/tests_pytorch/trainer/properties/test_loggers.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 2,862 | 28.515464 | 90 | py |
lightning | lightning-master/tests/tests_pytorch/trainer/properties/test_estimated_stepping_batches.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 5,989 | 37.152866 | 108 | py |
lightning | lightning-master/tests/tests_pytorch/trainer/properties/test_get_model.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 2,361 | 28.525 | 107 | py |
lightning | lightning-master/tests/tests_pytorch/trainer/properties/test_log_dir.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 4,342 | 33.19685 | 118 | py |
lightning | lightning-master/tests/tests_pytorch/trainer/connectors/test_checkpoint_connector.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 8,583 | 37.841629 | 119 | py |
lightning | lightning-master/tests/tests_pytorch/trainer/connectors/test_callback_connector.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 11,646 | 35.857595 | 118 | py |
lightning | lightning-master/tests/tests_pytorch/trainer/connectors/test_data_connector.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 25,084 | 37.831269 | 116 | py |
lightning | lightning-master/tests/tests_pytorch/trainer/connectors/test_accelerator_connector.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 40,062 | 38.784508 | 119 | py |
lightning | lightning-master/tests/tests_pytorch/trainer/connectors/test_signal_connector.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 6,351 | 35.716763 | 118 | py |
lightning | lightning-master/tests/tests_pytorch/trainer/dynamic_args/test_multiple_eval_dataloaders.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 2,218 | 28.986486 | 84 | py |
lightning | lightning-master/tests/tests_pytorch/strategies/test_ddp_spawn.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 3,219 | 33.255319 | 111 | py |
lightning | lightning-master/tests/tests_pytorch/strategies/test_custom_plugin.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 1,930 | 38.408163 | 103 | py |
lightning | lightning-master/tests/tests_pytorch/strategies/test_xla.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 1,917 | 38.142857 | 103 | py |
lightning | lightning-master/tests/tests_pytorch/strategies/test_common.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 3,396 | 36.32967 | 116 | py |
lightning | lightning-master/tests/tests_pytorch/strategies/test_ddp_spawn_strategy.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 7,018 | 38.432584 | 118 | py |
lightning | lightning-master/tests/tests_pytorch/strategies/test_ddp.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 7,156 | 37.069149 | 120 | py |
lightning | lightning-master/tests/tests_pytorch/strategies/test_deepspeed_strategy.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 50,970 | 37.094918 | 119 | py |
lightning | lightning-master/tests/tests_pytorch/strategies/test_registry.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 5,657 | 35.503226 | 116 | py |
lightning | lightning-master/tests/tests_pytorch/strategies/test_fsdp.py | import os
from contextlib import nullcontext
from datetime import timedelta
from functools import partial
from typing import Any, Callable, Dict, Optional
from unittest import mock
from unittest.mock import ANY, Mock
import pytest
import torch
import torch.nn as nn
from lightning.fabric.plugins.environments import Li... | 27,573 | 38.112057 | 119 | py |
lightning | lightning-master/tests/tests_pytorch/strategies/test_ddp_strategy_with_comm_hook.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 8,384 | 33.364754 | 111 | py |
lightning | lightning-master/tests/tests_pytorch/strategies/test_single_device_strategy.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 4,668 | 33.585185 | 115 | py |
lightning | lightning-master/tests/tests_pytorch/strategies/test_ddp_strategy.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 11,118 | 35.455738 | 118 | py |
lightning | lightning-master/tests/tests_pytorch/strategies/launchers/test_multiprocessing.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 7,917 | 43.234637 | 115 | py |
lightning | lightning-master/tests/tests_pytorch/strategies/launchers/test_subprocess_script.py | import subprocess
import sys
from unittest.mock import Mock
import pytest
from lightning_utilities.core.imports import RequirementCache
from lightning.pytorch.strategies.launchers.subprocess_script import _SubprocessScriptLauncher
from tests_pytorch.helpers.runif import RunIf
_HYDRA_WITH_RERUN = RequirementCache("hy... | 2,240 | 28.486842 | 104 | py |
lightning | lightning-master/tests/tests_pytorch/strategies/scripts/cli_script.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 986 | 38.48 | 93 | py |
lightning | lightning-master/tests/tests_pytorch/callbacks/test_model_summary.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 2,534 | 36.835821 | 104 | py |
lightning | lightning-master/tests/tests_pytorch/callbacks/test_lambda_function.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 2,031 | 29.787879 | 74 | py |
lightning | lightning-master/tests/tests_pytorch/callbacks/test_rich_model_summary.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 2,509 | 37.030303 | 112 | py |
lightning | lightning-master/tests/tests_pytorch/callbacks/test_pruning.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 13,673 | 40.186747 | 183 | py |
lightning | lightning-master/tests/tests_pytorch/callbacks/test_gradient_accumulation_scheduler.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 6,097 | 37.594937 | 120 | py |
lightning | lightning-master/tests/tests_pytorch/callbacks/test_stochastic_weight_avg.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 14,886 | 37.4677 | 119 | py |
lightning | lightning-master/tests/tests_pytorch/callbacks/test_finetuning_callback.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 16,246 | 37.228235 | 118 | py |
lightning | lightning-master/tests/tests_pytorch/callbacks/test_timer.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 7,042 | 36.865591 | 112 | py |
lightning | lightning-master/tests/tests_pytorch/callbacks/test_callback_hook_outputs.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 1,889 | 31.033898 | 75 | py |
lightning | lightning-master/tests/tests_pytorch/callbacks/test_spike.py | import contextlib
import sys
import pytest
import torch
from lightning.fabric.utilities.spike import _TORCHMETRICS_GREATER_EQUAL_1_0_0, TrainingSpikeException
from lightning.pytorch import LightningModule, Trainer
from lightning.pytorch.callbacks.spike import SpikeDetection
class IdentityModule(LightningModule):
... | 7,205 | 30.884956 | 119 | py |
lightning | lightning-master/tests/tests_pytorch/callbacks/test_prediction_writer.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 5,215 | 38.515152 | 105 | py |
lightning | lightning-master/tests/tests_pytorch/callbacks/test_device_stats_monitor.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 7,831 | 33.654867 | 110 | py |
lightning | lightning-master/tests/tests_pytorch/callbacks/test_lr_monitor.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 24,226 | 35.376877 | 119 | py |
lightning | lightning-master/tests/tests_pytorch/callbacks/test_early_stopping.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 19,161 | 36.425781 | 119 | py |
lightning | lightning-master/tests/tests_pytorch/callbacks/test_callbacks.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 5,787 | 34.078788 | 119 | py |
lightning | lightning-master/tests/tests_pytorch/callbacks/progress/test_rich_progress_bar.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 17,639 | 33.252427 | 116 | py |
lightning | lightning-master/tests/tests_pytorch/callbacks/progress/test_tqdm_progress_bar.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 26,448 | 34.549731 | 120 | py |
lightning | lightning-master/tests/tests_pytorch/core/test_datamodules.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 18,172 | 35.129225 | 120 | py |
lightning | lightning-master/tests/tests_pytorch/core/test_results.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 2,200 | 39.759259 | 119 | py |
lightning | lightning-master/tests/tests_pytorch/core/test_lightning_optimizer.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 11,655 | 35.539185 | 118 | py |
lightning | lightning-master/tests/tests_pytorch/core/test_metric_result_integration.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 22,140 | 35.476112 | 116 | py |
lightning | lightning-master/tests/tests_pytorch/core/test_lightning_module.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 21,457 | 35.680342 | 119 | py |
lightning | lightning-master/tests/tests_pytorch/core/test_saving.py | import pytest
import torch
import lightning.pytorch as pl
from lightning.pytorch.callbacks import ModelCheckpoint
from lightning.pytorch.demos.boring_classes import BoringDataModule, BoringModel
from tests_pytorch.helpers.runif import RunIf
def create_boring_checkpoint(tmp_path, model, accelerator="cuda"):
check... | 3,431 | 43 | 117 | py |
lightning | lightning-master/tests/tests_pytorch/loops/test_loop_state_dict.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 4,300 | 41.166667 | 109 | py |
lightning | lightning-master/tests/tests_pytorch/loops/test_evaluation_loop.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 17,469 | 35.169772 | 120 | py |
lightning | lightning-master/tests/tests_pytorch/loops/test_training_loop_flow_scalar.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 7,890 | 31.208163 | 113 | py |
lightning | lightning-master/tests/tests_pytorch/loops/test_fetchers.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 18,267 | 35.609218 | 116 | py |
lightning | lightning-master/tests/tests_pytorch/loops/test_prediction_loop.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 10,136 | 34.076125 | 119 | py |
lightning | lightning-master/tests/tests_pytorch/loops/test_training_loop_flow_dict.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 4,661 | 29.874172 | 104 | py |
lightning | lightning-master/tests/tests_pytorch/loops/test_training_epoch_loop.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 4,185 | 38.490566 | 115 | py |
lightning | lightning-master/tests/tests_pytorch/loops/test_evaluation_loop_flow.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 3,673 | 32.099099 | 113 | py |
lightning | lightning-master/tests/tests_pytorch/loops/test_training_loop.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 7,672 | 35.712919 | 113 | py |
lightning | lightning-master/tests/tests_pytorch/loops/test_flow_warnings.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 1,315 | 29.604651 | 74 | py |
lightning | lightning-master/tests/tests_pytorch/loops/test_all.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 4,005 | 35.418182 | 99 | py |
lightning | lightning-master/tests/tests_pytorch/loops/test_progress.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 3,712 | 33.06422 | 104 | py |
lightning | lightning-master/tests/tests_pytorch/loops/test_loops.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 31,580 | 35.636891 | 118 | py |
lightning | lightning-master/tests/tests_pytorch/loops/optimization/test_manual_loop.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 1,698 | 35.934783 | 99 | py |
lightning | lightning-master/tests/tests_pytorch/loops/optimization/test_closure.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 1,785 | 37.826087 | 106 | py |
lightning | lightning-master/tests/tests_pytorch/loops/optimization/test_optimizer_loop.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 2,114 | 33.112903 | 110 | py |
lightning | lightning-master/tests/tests_pytorch/helpers/test_datasets.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 1,252 | 32.864865 | 102 | py |
lightning | lightning-master/tests/tests_pytorch/helpers/runif.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 856 | 37.954545 | 119 | py |
lightning | lightning-master/tests/tests_pytorch/helpers/simple_models.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 4,453 | 33.527132 | 97 | py |
lightning | lightning-master/tests/tests_pytorch/helpers/pipelines.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 4,425 | 37.155172 | 117 | py |
lightning | lightning-master/tests/tests_pytorch/helpers/advanced_models.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 7,397 | 32.324324 | 111 | py |
lightning | lightning-master/tests/tests_pytorch/helpers/utils.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 2,265 | 34.968254 | 116 | py |
lightning | lightning-master/tests/tests_pytorch/helpers/test_models.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 1,871 | 35.705882 | 99 | py |
lightning | lightning-master/tests/tests_pytorch/helpers/datamodules.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 4,754 | 35.29771 | 112 | py |
lightning | lightning-master/tests/tests_pytorch/helpers/datasets.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 7,987 | 35.981481 | 113 | py |
lightning | lightning-master/tests/tests_pytorch/helpers/deterministic_model.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 3,386 | 32.534653 | 98 | py |
lightning | lightning-master/tests/tests_pytorch/helpers/__init__.py | from lightning.pytorch.demos.boring_classes import ( # noqa: F401
BoringDataModule,
BoringModel,
ManualOptimBoringModel,
RandomDataset,
)
from tests_pytorch.helpers.datasets import TrialMNIST # noqa: F401
| 223 | 27 | 67 | py |
lightning | lightning-master/tests/tests_pytorch/models/test_gpu.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 7,846 | 35.840376 | 118 | py |
lightning | lightning-master/tests/tests_pytorch/models/test_hparams.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 31,671 | 33.35141 | 116 | py |
lightning | lightning-master/tests/tests_pytorch/models/test_amp.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 5,202 | 30.533333 | 109 | py |
lightning | lightning-master/tests/tests_pytorch/models/test_tpu.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 12,436 | 32.254011 | 110 | py |
lightning | lightning-master/tests/tests_pytorch/models/test_fabric_integration.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 3,011 | 34.023256 | 110 | py |
lightning | lightning-master/tests/tests_pytorch/models/test_hooks.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 36,424 | 39.698324 | 117 | py |
lightning | lightning-master/tests/tests_pytorch/models/test_onnx.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 5,524 | 32.689024 | 117 | py |
lightning | lightning-master/tests/tests_pytorch/models/test_torchscript.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 7,122 | 33.746341 | 108 | py |
lightning | lightning-master/tests/tests_pytorch/models/test_restore.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 23,745 | 34.283804 | 116 | py |
lightning | lightning-master/tests/tests_pytorch/models/test_cpu.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 9,444 | 28.423676 | 101 | py |
lightning | lightning-master/tests/tests_pytorch/models/test_ddp_fork_amp.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 1,231 | 38.741935 | 115 | py |
lightning | lightning-master/tests/tests_pytorch/checkpointing/test_trainer_checkpoint.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 5,249 | 42.032787 | 120 | py |
lightning | lightning-master/tests/tests_pytorch/checkpointing/test_legacy_checkpoints.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 4,838 | 38.663934 | 117 | py |
lightning | lightning-master/tests/tests_pytorch/checkpointing/test_model_checkpoint.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 54,838 | 37.564698 | 120 | py |
lightning | lightning-master/tests/tests_pytorch/checkpointing/test_checkpoint_callback_frequency.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 4,583 | 35.672 | 120 | py |
lightning | lightning-master/tests/tests_pytorch/checkpointing/test_torch_saving.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 2,242 | 32.477612 | 120 | py |
lightning | lightning-master/tests/tests_pytorch/plugins/test_double_plugin.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 5,764 | 31.942857 | 118 | py |
lightning | lightning-master/tests/tests_pytorch/plugins/test_amp_plugins.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 7,490 | 32.743243 | 119 | py |
lightning | lightning-master/tests/tests_pytorch/plugins/test_cluster_integration.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 4,851 | 41.938053 | 113 | py |
lightning | lightning-master/tests/tests_pytorch/plugins/test_checkpoint_io_plugin.py | # Copyright The Lightning AI team.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wri... | 6,140 | 39.137255 | 118 | py |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.