Skip to content

Commit

Permalink
revert onednn update (intel#189)
Browse files Browse the repository at this point in the history
* Revert "[LLGA] remove infer_shape due to backend change (intel#176)"

This reverts commit c1fe854.

* Revert "[LLGA] ww35 update backend (intel#175)"

This reverts commit eccafbe.
  • Loading branch information
chunyuan-w authored Sep 2, 2021
1 parent c1fe854 commit f4af2b9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion third_party/llga
Submodule llga updated from 5f36fa to 1c0bff
6 changes: 5 additions & 1 deletion torch_ipex/csrc/jit/codegen/onednn/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,14 @@ ArgSpecs LlgaKernel::specializeInputSpecs(const TensorArgs &inputs) const {

ArgSpecs LlgaKernel::specializeOutputSpecs(const partition &partition,
const ArgSpecs &inputSpecs) const {
auto inputs = fmap(inputSpecs, toLogicalTensor);
auto outputs = fmap(graph_->outputs(), toLogicalTensor);
partition.infer_shape(inputs, outputs);

ArgSpecs outputSpecs;
outputSpecs.reserve(nOutputs_);
for (size_t i = 0; i < nOutputs_; i++) {
auto spec = ArgSpec(graph_->outputs()[i]);
auto spec = ArgSpec(outputs[i]);

if (spec.is_quantized())
spec = getQuantizedSpec(spec, i);
Expand Down

0 comments on commit f4af2b9

Please sign in to comment.