megatron.core.utils#
Description
Utility functions used throughout Megatron core
Classes
Global buffer to avoid dynamic memory allocations. |
|
|
Autograd function to make a viewless tensor. |
Functions
|
Assert that a tensor is not a view (i.e., its '._base' field is not set). |
|
Ensure that numerator is divisible by the denominator and return the division value. |
|
Ensure that numerator is divisible by the denominator. |
|
Entry-point for creating viewless tensors. |
|
Safely set tensor's '.data' field. |