Skip to content
View JosephSBoyle's full-sized avatar
  • Canon Medical Research
  • London, England

Block or report JosephSBoyle

Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. MTG-Content-Based-Similarity-Recommender MTG-Content-Based-Similarity-Recommender Public

    MTG: Content-Based Similarity Recommender is a project used to create word-embedding models for MTG cards.

    Python

  2. Print the shape of any tensors and a... Print the shape of any tensors and arrays in the current stack
    1
    print(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)
  3. go-ai go-ai Public

    This is an AI for the game of Go written in Zig

    Zig