huggingface / huggingface/candle

Is there a way to print tensor while debugging?

Open
#1,286 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
21k
Forks
1.8k
Avg merge
16h 42m
Merged PRs (30d)
25

Description

I need to see tensor values and shape.

Hardcoding println is inconvenient.

This seems to be less convenient than python.

I wonder if there is a better way.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no files, tests, or entry points. Start by reviewing Candle's existing tensor display and debugging facilities, then determine the intended way to inspect tensor values and shapes without hardcoded println calls. Done means the proposed workflow is defined and validated against the Python comparison described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.