Doctoral Student with QMUL & Canon Medical Research Europe
-
Canon Medical Research
- London, England
Pinned Loading
-
MTG-Content-Based-Similarity-Recommender
MTG-Content-Based-Similarity-Recommender PublicMTG: Content-Based Similarity Recommender is a project used to create word-embedding models for MTG cards.
Python
-
Print the shape of any tensors and a...
Print the shape of any tensors and arrays in the current stack 1print(f"\nArray Shapes:\n{'':=>50}"); [print(f"{k:<20}: {str(type(v).__name__):<7}:", tuple(v.shape)) for k, v in locals().items() if hasattr(v, "shape") and not hasattr(getattr(v, "shape", None), "__call__")] # Exclude the 'numpy' import, the `shape` func. isn't relevant
2# Array Shapes:
3# ==================================================
4# input_ids : Tensor : (8, 1, 250)
5# attention_mask : Tensor : (8, 1, 250)
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.