Upgrade PTL to 1.0.2
State: closed | Pull request: yes

Lightning Changes:
- Trainer parameters
  - `row_log_interval` -> `log_every_n_steps`: https://pytorch-lightning.readthedocs.io/en/latest/trainer.html#log-every-n-steps
  - `distributed_backend` -> `accelerator`: https://pytorch-lightning.readthedocs.io/en/latest/trainer.html#accelerator
  - `log_save_interval` -> `flush_logs_every_n_steps`
- `pl.callbacks.LearningRateLogger` -> `pl.callbacks.LearningRateMonitor`
- `TensorMetric` -> `Metric`: https://pytorch-lightning.readthedocs.io/en/latest/metrics.html#
  - Please note, this involved an API change. All TensorMetrics have been ported but are not guaranteed to work 100% correctly
  - Ported Metrics include [`WERBPE`, `WER`, `TopKClassificationAccuracy`, `ClassificationReport`, `Perplexity`]
- The checkpoint callback has changed and is partially supported in this PR.
- The recommended logging API has changed. Please switch to `self.log` for logging scalars instead of return dictionaries from `training_step`, `training_epoch_end`, `validation...`, `test...`. The logger object should be used for logging anything other than scalars.

NeMo Changes
- Added `strict` to most NeMo restoring functions to handle #1297 

Under the hood changes:
- Getting error `AttributeError: 'Trainer' object has no attribute 'configure_logger'`, now `Trainer.logger_connector.configure_logger`
- `configure_checkpoint_callback` -> `callback_connector.init_default_checkpoint_callback`



let's hold on with this until 1.0.0 is available.

This pull request **introduces 1 alert** when merging 390d2eb622de95294958add106f3226e965958fb into fd98a89adf80012987851a2cd3c3f4dc63bb8db6 - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-396aed525cd9b16926c60913e9476e3a472326cc)

**new alerts:**

* 1 for Unused local variable

This pull request **introduces 1 alert** when merging 9564bd2b913c07876f064eacff1e71ce48ad687a into fd98a89adf80012987851a2cd3c3f4dc63bb8db6 - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-07fe61ac822f395847c5f89e30d497a714cd4678)

**new alerts:**

* 1 for Unused local variable

This pull request **introduces 1 alert** when merging a9ae9eecb3d2cd7b350aeb89118b269c0cb771db into fd98a89adf80012987851a2cd3c3f4dc63bb8db6 - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-e17622e7b1c6adb5f60b971c902b7495d266b33a)

**new alerts:**

* 1 for Unused local variable

This pull request **introduces 1 alert** when merging 3592b2b5a2743b7ebc86a6ecca5d51551511a407 into fd98a89adf80012987851a2cd3c3f4dc63bb8db6 - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-3cbdf09af260a2cd0d2fda4b772fdc3ece3c289e)

**new alerts:**

* 1 for Unused local variable

This pull request **introduces 1 alert** when merging b147370de5a05ef29e96901c383a0ac81d9e352e into fd98a89adf80012987851a2cd3c3f4dc63bb8db6 - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-b63bc910ba86320bcdb41345d48ad3d3d17aa70d)

**new alerts:**

* 1 for Unused local variable

This pull request **introduces 3 alerts** and **fixes 2** when merging 3f0374ea5bba5cc6e9f791948056c7b977213c8e into fd98a89adf80012987851a2cd3c3f4dc63bb8db6 - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-5c7696e96465c61107b5df74e9c8f8b5a99d08b3)

**new alerts:**

* 2 for Syntax error
* 1 for Unused local variable

**fixed alerts:**

* 1 for Signature mismatch in overriding method
* 1 for Unused import

This pull request **introduces 5 alerts** and **fixes 2** when merging 5dc7942ddaa7390c10888dcc5b5b24625d4447eb into fd98a89adf80012987851a2cd3c3f4dc63bb8db6 - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-f4a217e300211d394aa592d7b668fc895b789a55)

**new alerts:**

* 3 for Unused local variable
* 2 for Syntax error

**fixed alerts:**

* 1 for Signature mismatch in overriding method
* 1 for Unused import

This pull request **introduces 3 alerts** when merging de5081654c849d9739f9a5b63862e11107225b0b into fd98a89adf80012987851a2cd3c3f4dc63bb8db6 - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-a5922a13978f734611005139486fc1c8a2d25c35)

**new alerts:**

* 3 for Unused local variable

This pull request **introduces 3 alerts** when merging e40b472821e636d4881f1afcf5b2d088596c1973 into fd98a89adf80012987851a2cd3c3f4dc63bb8db6 - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-109ac607f7bf4116591dd5ad81988c7580ca595a)

**new alerts:**

* 3 for Unused local variable

This pull request **introduces 1 alert** when merging 36b9f8731e76041b5241848dc40f136941d878e0 into fd98a89adf80012987851a2cd3c3f4dc63bb8db6 - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-f350c9b90fe27adf328a9dad676297df5fe3cfd4)

**new alerts:**

* 1 for Unused local variable

This pull request **introduces 1 alert** when merging d6d564dbe121427e92937c76ce0a0761c36d4187 into fd98a89adf80012987851a2cd3c3f4dc63bb8db6 - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-9fae65612de63f75e2148b43bab060d1b62e6749)

**new alerts:**

* 1 for Unused local variable

This pull request **introduces 1 alert** when merging ac7102ae96830b76379030a4bec62bc79abfb1db into fd98a89adf80012987851a2cd3c3f4dc63bb8db6 - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-c823d5fe6ece75d9ef1c3ad88cc40328fd6bc8e2)

**new alerts:**

* 1 for Unused local variable

This pull request **introduces 1 alert** when merging 2a0f459d602509961b7d409ad49273b0405c648e into fd98a89adf80012987851a2cd3c3f4dc63bb8db6 - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-c6e82a4cc9ad5dea8eea46fdfa10d298f308918b)

**new alerts:**

* 1 for Unused local variable

This pull request **introduces 1 alert** when merging 89c14ca32fdac364dee524015ab68d54450ed8ae into 87206f7d160e8bec3d6cf5fa23e479588aebd371 - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-3bdb794f863169b308fe4cac64820d1480292086)

**new alerts:**

* 1 for Unused local variable

This pull request **introduces 1 alert** when merging 5999ee9211002fe7a4c145fd615cdd119d5a8262 into 87206f7d160e8bec3d6cf5fa23e479588aebd371 - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-cd9859736ca1bd77ca920ffb7e096ad29dd3c540)

**new alerts:**

* 1 for Unused local variable

This pull request **introduces 2 alerts** when merging a28a12d209db690fc70d6c9c6c1df30f957a59c7 into 87206f7d160e8bec3d6cf5fa23e479588aebd371 - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-2173101a1fe5fc37add262b79f7c0d6f0ce1dff1)

**new alerts:**

* 1 for Unused local variable
* 1 for Unused import

This pull request **introduces 2 alerts** when merging bf0f265f381b3746ac1f472f3e273d20a92e8563 into 87206f7d160e8bec3d6cf5fa23e479588aebd371 - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-cd686bd8e35f87709e3c104cf872117eda6e8c9c)

**new alerts:**

* 1 for Unused local variable
* 1 for Unused import

This pull request **introduces 2 alerts** when merging 4752293efa7939d2465fb46c1b919b218f876ad0 into 87206f7d160e8bec3d6cf5fa23e479588aebd371 - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-3bb9a4a06b2289897919df10586f8976ccd3a3e7)

**new alerts:**

* 1 for Unused local variable
* 1 for Unused import

This pull request **introduces 2 alerts** when merging 1bc44e9498cc2f070152aa516e29daaa4d755446 into 87206f7d160e8bec3d6cf5fa23e479588aebd371 - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-cf4f2b83ad6b06f7a5c2324a9edb63ac57a729aa)

**new alerts:**

* 1 for Unused local variable
* 1 for Unused import

This pull request **introduces 2 alerts** when merging a489ee6bcfda925ef53d591ad30d0c0ae4f36452 into 87206f7d160e8bec3d6cf5fa23e479588aebd371 - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-aa098820ba0dae930729d68a8680661d4616d7ac)

**new alerts:**

* 1 for Unused local variable
* 1 for Unused import

This pull request **introduces 1 alert** when merging 2e91818c60a0baf85c34dce1570ebd89e41101ae into 87206f7d160e8bec3d6cf5fa23e479588aebd371 - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-6bfd2c2033940668cc06adab635f43f6cde12e44)

**new alerts:**

* 1 for Unused local variable

This pull request **introduces 1 alert** when merging aeefc961b501284af3167c07ebafb85df8c61489 into 910caf6aeb1685303d8b7388c771ac9e02ed815b - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-75f53919f298cf884e5e05ce3e47c503739660d3)

**new alerts:**

* 1 for Unused import

This pull request **introduces 2 alerts** when merging 4771ef3f9e9c5e2892418d6ec0019d505c1928a3 into 910caf6aeb1685303d8b7388c771ac9e02ed815b - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-2af169a9648985f1a2d5a86ba8fba68651fd1184)

**new alerts:**

* 1 for Unused local variable
* 1 for Unused import

This pull request **introduces 2 alerts** when merging 4ee1773d068f13dc3386dfd2d365a0487a2ce0db into 910caf6aeb1685303d8b7388c771ac9e02ed815b - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-8a771b4fa3d67bb469ba0611250d01cf882b774d)

**new alerts:**

* 1 for Unused local variable
* 1 for Unused import

This pull request **introduces 1 alert** when merging 46b26a7fb76ffdf9191e7fca3963bbd47fc02ad6 into 910caf6aeb1685303d8b7388c771ac9e02ed815b - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-a5ac726da8068c405a26249e6f4560a689ee4868)

**new alerts:**

* 1 for Unused import

This pull request **introduces 1 alert** when merging 71e8f6f9788e7f705aa19ace34560aeb0c40f85f into 910caf6aeb1685303d8b7388c771ac9e02ed815b - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-e8ebb7f75052089893f0aaec9421326cc903dcf1)

**new alerts:**

* 1 for Unused import

This pull request **introduces 1 alert** when merging ae46780ca103e45881c2b79e778edc94812c4caf into 910caf6aeb1685303d8b7388c771ac9e02ed815b - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-6dbdd37f7ea3ad5c63cca62eaf6db89bb15b1059)

**new alerts:**

* 1 for Unused import

This pull request **introduces 1 alert** when merging ae687b05d1b2fcc442f4d049cd3a85aedf64eec5 into 910caf6aeb1685303d8b7388c771ac9e02ed815b - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-6a32e59d7f0708ca4211f8a181d2097f4e9383d2)

**new alerts:**

* 1 for Unused import

This pull request **introduces 3 alerts** when merging 61394209253e5a0e8e464f6aa170fc1dc84bf123 into 910caf6aeb1685303d8b7388c771ac9e02ed815b - [view on LGTM.com](https://lgtm.com/projects/g/NVIDIA/NeMo/rev/pr-ad5b5d062c4a08c166939576b8c694eee270c2b2)

**new alerts:**

* 2 for Unused local variable
* 1 for Unused import