Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove flag use_mkldnn_wgt #3548

Merged
merged 5 commits into from
Aug 17, 2017
Merged

Conversation

tensor-tang
Copy link
Contributor

resolve #3409

Copy link
Contributor

@luotao1 luotao1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. 我用v1_api_demo/quick_start测过,是可以的。

// After run some iters, the mkldnn weight has been stored in dnnLayer
// and we can also get the mkldnn weight paramter header format
// Weight param should always be index 0 (and bias index 1).
// TODO(TJ): should also considerate mean and var format when batchnorm ready
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. iters-iterations
  2. 349行header format后面加标点,parameter拼错
  3. 350行:Note that weight parameter(打全) XXX
  4. considerate->consider ,前者是形容词

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, done

@@ -34,6 +34,12 @@ limitations under the License. */

namespace paddle {

typedef enum {
PARAM_FORMAT_ORIGINAL = 0, // the paddle original basic format
PARAM_FORMAT_MKLDNN_OI, // the mkldnn format oi
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oi是其中一种mkldnn的格式吧。这里能给个链接么,或者给个详细点的说明。
不然大家会认为mkldnn就一种格式,可以说明下有很多种格式,oi只是其中一种。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的,done

uint32_t valueSize; // = sizeof(real)
uint64_t size; // = getSize()
};

/**
* @brief Is the header supported
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

259行注释不全,文件头支持什么?
另外结束时请加标点,下面几处brief的注释一样。

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, done.

Copy link
Contributor

@luotao1 luotao1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@luotao1 luotao1 merged commit 2a9cb21 into PaddlePaddle:develop Aug 17, 2017
@luotao1 luotao1 moved this from Doing to Done in Optimization on Intel Platform Aug 17, 2017
@tensor-tang tensor-tang deleted the remove-flag branch August 17, 2017 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

remove use_mkldnn_wgt flag
2 participants