Read/Write method of DataBuffer is against intuition

Open
#510 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
java
Domain
api

Research direction

Start by locating the DataBuffer read and write entry points and inspecting their current direction and callers. The issue does not name files or tests, so confirm the intended contract before making changes; done means the API behavior or naming is explicitly aligned with that contract and affected callers remain correct.

Written by the indexing model from the issue text.

Description

Naturally when using DataBuffer.read(sth), should expect it to read from sth into the buffer, and vice versa.

But the API of DataBuffer is now just the opposite

Dominant language
Java
Stars
928
Forks
227
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from tensorflow/java

All issues in tensorflow/java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.