Skip to content

Commit

Permalink
[LLGA] remove infer_shape due to backend change (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
chunyuan-w authored Aug 31, 2021
1 parent 568c4d9 commit c1fe854
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion third_party/llga
Submodule llga updated from a7b70e to 5f36fa
6 changes: 1 addition & 5 deletions torch_ipex/csrc/jit/codegen/onednn/kernel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,10 @@ 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(outputs[i]);
auto spec = ArgSpec(graph_->outputs()[i]);

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

0 comments on commit c1fe854

Please sign in to comment.