Skip to content

Conversation

smessmer
Copy link
Contributor

@smessmer smessmer commented Nov 1, 2018

Stack:
    :white_circle:  #13528 Move IdWrapper to c10/util  💚
    :white_circle:  #13529 Remove typeid -> Half dependency  💛
    :white_circle:  #13530 Move typeid to c10/util  💛
    :white_circle:  #13531 Fix include paths for typeid.h  💛
    :white_circle:  #13532 Move c10 dispatcher prototype to c10/  💚
    :white_circle:  #13609 Move intrusive_ptr to c10/util  💛
    :white_circle:  #13610 Fix include paths for intrusive_ptr  💛
    :white_circle:  #13533 Register caffe2 layer norm with c10 dispatcher  💛
    :black_circle:  #13488 Call c10 layer_norm from PyTorch  💛

Differential Revision: D12894385

Differential Revision: D12894386
Differential Version: 62356209
Differential Revision: D12894385
Differential Version: 62356210
Differential Revision: D12894385
Differential Version: 62477482
Differential Revision: D12894385
Differential Version: 62672001
Differential Revision: D12894385
Differential Version: 62761603
// TODO cudnn_enabled
caffe2::ops::LayerNorm::Cache cache;
caffe2::CPUContext context;
Tensor output = at::empty({0});

This comment was marked as off-topic.

caffe2::Tensor caffe2_output = to_caffe2(output);
caffe2::Tensor caffe2_output_mean = to_caffe2(output_mean);
caffe2::Tensor caffe2_output_stdev = to_caffe2(output_stdev);
c10::Dispatcher<caffe2::ops::LayerNorm>::call(caffe2_input, &caffe2_output, &caffe2_output_mean, &caffe2_output_stdev, axis, (float)epsilon, &cache, static_cast<caffe2::BaseContext*>(&context));

This comment was marked as off-topic.

@smessmer
Copy link
Contributor Author

smessmer commented Nov 7, 2018

closing because of ghexport issues, will reopen new PR for this.

@smessmer smessmer closed this Nov 7, 2018
@smessmer smessmer deleted the export-D12894385 branch November 7, 2018 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants