Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Supporting scalar tensor broadcasting for AddOp#66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
dboyliao wants to merge107 commits intodevelop
base:develop
Choose a base branch
Loading
fromfeature/add_op_broadcasting

Conversation

@dboyliao
Copy link
Member

@dboyliaodboyliao commentedDec 8, 2017
edited
Loading

Supporting scalar tensor broadcasting.

ex:
tensor1: shape=(50,)
tensor2: shape=(1,)
then broadcasting tensor2 over tensor1 inAddOp.
That is, tensor1+tensor2 will be of shape (50,)

Rationale:
It's common for TensorFlow user to initialize their bias term in NN model as scaler.
So I think it's more consistent with TensorFlow's behavior and the graph pb file it generate if we support at least scalar broadcasting.

Knight-Xand others added30 commitsOctober 28, 2017 15:22
  fix include name NNOps to NnOps
  1. extend different type tensor for sd, memory  2. inherit super class for polymorphism
  1. test idea quickly  2. sync idea  3. take type from tensor  4. make type system in ramtensor
  1. implement add function  2. implement customized ram tensor constructor
Feature tensor ref initial merge commit
Add python requirements for SD preparation
neil-tanand others added22 commitsNovember 18, 2017 16:01
  2. define guard for deep_mnist_mlp for avoid preprocessing non include file  3. modify main function to focus on refactor point
  2. modify tensorCast for name lookup
@neil-tan
Copy link
Member

Noted, but broadcasting rule should extend to non-scalar cases.

@dboyliao
Copy link
MemberAuthor

Yes, so just leave it here for now.

@mbartling
Copy link
Member

@dboyliao Is this still relevant? Or can I close it?

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@Knight-XKnight-XAwaiting requested review from Knight-X

@neil-tanneil-tanAwaiting requested review from neil-tan

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

6 participants

@dboyliao@neil-tan@mbartling@Knight-X@BitYog

[8]ページ先頭

©2009-2025 Movatter.jp