tensorflow / tensorflow/java

Not clear how to construct "None"

Open
#264 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

I'm trying to invoke the equivalent of this python API: https://www.tensorflow.org/api_docs/python/tf/transpose

where perm=None by default.

Digging into the API I found Ops.linalg.transpose() but the perm parameter is mandatory, and I can't figure out how to construct the equivalent of None. So I have two questions:

  1. Should the perm parameter be optional?
  2. How does one construct None?

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.

Research direction

Start by reading Ops.linalg.transpose() and comparing its mandatory perm parameter with the linked Python tf.transpose API. Determine the intended Java representation of a missing perm and whether the parameter should be optional; done means the API behavior and its coverage are settled.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.