Skip to content

[mkldnn][21/22] Port ideep::tensor, engine and stream into ATen - #204807

Closed
frost-intel wants to merge 51 commits into
pytorch:mainfrom
frost-intel:ideep-removal/21-port-ideep-tensor
Closed

frost-intel wants to merge 51 commits into
pytorch:mainfrom
frost-intel:ideep-removal/21-port-ideep-tensor

Conversation

@frost-intel

@frost-intel frost-intel commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Linked issue or supporting maintainer

Part of #154444

BC-breaking?

No

Summary (human written only)

Ports tensor, engine, and stream from ideep to ATen, as well as replacing aliases.

After this PR, ATen no longer calls any ideep code.

Fake stack

Agent details (if applicable)

Developed with assistance from Claude Opus 5.5.

Part of #154444 (remove the ideep submodule). Depends on #204806.

This ports ideep's tensor (with its nested desc), engine, stream and allocator into aten/src/ATen/native/mkldnn/detail/Tensor.h, as at::native::mkldnn::{ITensor, Engine, IStream}. They replace the aliases added earlier in this series. The code is ported line-for-line from ideep's tensor.hpp, abstract_types.hpp and allocators.hpp, and ideep's comments are kept. After this PR, ATen no longer calls any ideep code. The only thing left is the #include, which the next PR removes along with the submodule.

Changes

  • detail/Tensor.h:
    • utils::allocator;
    • Engine, a subclass of dnnl::engine with cpu_engine() and the allocator hooks;
    • IStream::default_stream();
    • ITensor, a subclass of dnnl::memory, with its nested desc.
  • detail/Attr.h: no longer includes ideep, and operator ideep::attr_t is removed (nothing needs to convert back to ideep anymore). Adds the get_scales / has_scales_for / get_zero_points / has_zero_points_for helpers that the ported tensor code uses.
  • detail/Utils.h: adds utils::array_cmp.
  • IDeepRegistration.cpp: defines Engine::cpu_engine() and registers the c10 CPU allocator with it, together with the MKLDNN_* -> DNNL_* environment-variable translation. This replaces the setup that ideep's ideep_pin_singletons.hpp did before.

Deviations from ideep

  • Members of tensor and desc that ATen cannot reach are dropped: the descriptor typedef; desc::is_iohw, is_limited_blockable, is_nchw and to_dims; and get_descriptor, dup_desc, dup_descriptor, reinit_like (both overloads), get_public_format_dims, reorder_from, extract_submemory (both overloads), insert_submemory, need_reorder, get_hash and resize.
  • IDEEP_ENFORCE on oneDNN C API calls becomes dnnl::error::wrap_c_api under #ifndef NDEBUG, which matches ideep's behavior in release builds.
  • The loop index in feed_from, and in array_cmp, is now size_t instead of int, so they compile under -Wsign-compare -Werror. In-tree code is checked with those warnings, while ideep was compiled as a system header.
  • Engine::cpu_engine() is defined out of line in IDeepRegistration.cpp and marked TORCH_API, replacing ideep's IDEEP_EXPORT declaration and its definition in ideep_pin_singletons.hpp. This keeps a single engine instance across shared libraries, as before.
  • ideep's GPU engine path is not ported. ATen only uses the CPU engine here; XPU has its own oneDNN integration.

Testing

No behavior change:

  • oneDNN verbose primitive logs are identical before and after for test_mkldnn, quantized conv, conv-transpose and linear, and matmul, as are the outputs of targeted probe scripts.
  • Primitive-cache miss counts are identical at the default LRU_CACHE_CAPACITY and at LRU_CACHE_CAPACITY=1.
  • to_mkldnn buffers are still allocated through c10's CPU allocator (they show up in the memory profiler), and MKLDNN_VERBOSE=1 still turns on oneDNN verbose output.
  • The memory-descriptor blob returned by mkldnn::_get_mkldnn_serialized_md is unchanged apart from uninitialized struct padding. That padding varies from process to process on main too, and will be reported in a separate issue.
  • Compiles cleanly with -Wall -Wextra -Wsign-compare -Werror in release and debug builds.

Exported symbols

libtorch_cpu.so no longer exports ideep::engine::cpu_engine() and ideep::engine::gpu_engine(). Three
at::native helpers that took ideep types now take ITensor / ITensor::desc, so their mangled names change:
itensor_view_from_dense, itensor_view_from_const_dense and new_with_itensor_mkldnn. These are internal
ATen functions, and ideep headers were never shipped in torch/include, so out-of-tree code could not use them
through public headers.

Part of pytorch#154444.

Replace ideep type aliases with the oneDNN (or std) types they name.
Each is a plain `using` in ideep, so this is a pure spelling change
with no effect on generated code. It removes about a third of the
remaining ideep references from ATen CPU code.
Part of pytorch#154444. Move ideep::eltwise_forward/backward into aten.
Switch all CPU callers (relu, sigmoid, tanh, gelu, scalar mul,
dense GELU, JIT frozen scalar mul). Line-for-line port.
Part of pytorch#154444. Depends on pytorch#201055.

Move ideep::softmax_forward, ideep::prelu_forward and
ideep::prelu_backward into aten/src/ATen/native/mkldnn/detail/
{Softmax,Prelu}.{h,cpp} and switch the callers in SoftMax.cpp and
Prelu.cpp. The port is line-for-line; prelu_backward drops ideep's unused
prop_kind parameter. ideep::softmax_backward has no ATen callers and is
not ported.

Verified with ONEDNN_VERBOSE=1 over test_mkldnn.py and the mkldnn freezing
tests: all 6572 distinct primitive create/exec lines are identical before
and after.
Replace the weight_with_src_rank helper with ideep's inline code in
prelu_forward and prelu_backward so the port reads line-for-line against
ideep's prelu.hpp. No behavior change; ONEDNN_VERBOSE logs are unchanged.
Part of pytorch#154444. Depends on pytorch#201055.

Move ideep::pooling_forward and ideep::pooling_backward into
aten/src/ATen/native/mkldnn/detail/Pooling.{h,cpp} and switch the callers
in Pooling.cpp. The port is line-for-line, including storing max-pool
indices as a workspace on the output tensor for use by the backward pass.
ideep::pooling_v2_* (dilated pooling) has no ATen callers and is not
ported.

Verified with ONEDNN_VERBOSE=1 over test_mkldnn.py and the mkldnn freezing
tests: all 6572 distinct primitive create/exec lines are identical before
and after.
Part of pytorch#154444. Depends on pytorch#201055

Move ideep::sum, ideep::binary and ideep::direct_copy into
aten/src/ATen/native/mkldnn/detail/{Binary,DirectCopy}.{h,cpp} and switch
all CPU callers (add/add_/add_out, mul_out, copy_, clone, batch_norm
running-stat update). The port is line-for-line, including destination
reinit when the destination layout differs. It still operates on
ideep::tensor.

Verified with ONEDNN_VERBOSE=1 over test_mkldnn.py and the mkldnn freezing
tests: all 6572 distinct primitive create/exec lines are identical before
and after.
Part of pytorch#154444. Depends on pytorch#201055.

Move the ideep batch_normalization_forward_inference/forward_training/
backward and layer_normalization_forward operators used by ATen into
aten/src/ATen/native/mkldnn/detail/{BatchNorm,LayerNorm}.{h,cpp} and switch
the callers in Normalization.cpp. The port is line-for-line for the
code paths ATen uses; flags are fixed to ideep's defaults (the only values
ATen ever passed), so ideep's unused fused-relu/workspace branches and the
ignored momentum parameter are dropped.

Verified with ONEDNN_VERBOSE=1: the primitive create/exec log of
test_mkldnn.py and the mkldnn freezing tests is identical before and
after. A new test_mkldnn_layer_norm in test_freezing.py is added, since
not previously covered by tests.
Replace the kScaleShift constant with ideep's per-function pd_flags in
the batchnorm forward inference, forward training and backward ports so
they read line-for-line against ideep's batchnorm.hpp. No behavior change;
ONEDNN_VERBOSE logs are unchanged.
Part of pytorch#154444. Depends on pytorch#201055.

Move the ideep lstm_forward_inference (compute and expected_weights_desc),
lstm_forward_training (prepare and compute) and lstm_backward operators
used by ATen into aten/src/ATen/native/mkldnn/detail/Lstm.{h,cpp} and
switch the callers in RNN.cpp and MKLDNNConversions.cpp. The port is
line-for-line for the code paths ATen uses, including ideep's u8 branch;
parameters that ATen never passed or ideep ignored are dropped.

Verified with ONEDNN_VERBOSE=1 over test_mkldnn.py and the mkldnn freezing
tests (all primitive create/exec lines identical before and after), and
by comparing the output of mkldnn._reorder_mkldnn_rnn_layer_weight across
24 configurations (byte-identical packed layouts and values).
Part of pytorch#154444. Depends on pytorch#201055 (only the top commit is new).

Move the ideep inner_product_forward (compute, compute_binary,
expected_weights_desc), inner_product_backward_data and
inner_product_backward_weights code paths used by ATen into
aten/src/ATen/native/mkldnn/detail/InnerProduct.{h,cpp} and switch the
callers in Linear.cpp and MKLDNNConversions.cpp. The port is
line-for-line; ideep's private helpers keep their names. Primitive
descriptors still come from ideep's computation_cache with the same keys,
so the cache is shared with ideep until it is ported separately.

Verified with ONEDNN_VERBOSE=1: the primitive create/exec logs of
test_mkldnn.py, the mkldnn freezing tests, test_mkldnn_fusion.py and the
Inductor mkldnn linear pattern tests are identical before and after.
Cast weights.ndims() to size_t when comparing with diff_src_dims.size().
The comparison is copied from ideep, where it is hidden by the system-header
include; WERROR builds reject it here.
Part of pytorch#154444. Depends on pytorch#201055.

Port the floating-point convolution forward, backward-data and
backward-weights operators ATen uses from ideep into
aten/src/ATen/native/mkldnn/detail/Conv.{h,cpp}. The port is
line-for-line, still takes ideep::tensor/attr_t, and shares ideep's
primitive cache, so behavior is unchanged.

Switch the call sites in mkldnn/Conv.cpp, ConvPrepack.cpp,
MKLDNNConversions.cpp and quantized/cpu/qconv_prepack.cpp
(expected_weights_desc only). Quantized prepare/compute and transposed
convolution remain on ideep for now.

Drop code ATen never reaches: use_gemm, unused overloads/parameters,
backward_weights' diff_weight_type, and the fixed algorithm parameter on
backward. Remove an unused variable and fix sign-compare loop indices
that surface outside ideep's system-header include.
Keep only the fp32 forward port (compute_v3, compute_binary,
expected_weights_desc and their helpers) to stay under the PR size limit.
Backward data/weights and compute_v2 with its int8 prepare_parameters /
compute_dispatch path move to separate PRs; their call sites in
mkldnn/Conv.cpp and ConvPrepack.cpp go back to ideep until those land.
Part of pytorch#154444. Depends on pytorch#201055.

Port the floating-point matmul path ATen uses (ideep's deprecated
no-bias matmul_forward::compute) into
aten/src/ATen/native/mkldnn/detail/Matmul.{h,cpp}. The port is
line-for-line, still takes ideep::tensor/attr_t, and shares ideep's
primitive cache, so behavior is unchanged.

Switch the three call sites in mkldnn/Matmul.cpp. Quantized linear
remains on ideep for now.

Drop code ATen never reaches: compute_impl's int8 branches (callers
always pass empty scales and unscaled weights), the scale,
bin_post_params, dst_type, lowp_kind and engine parameters, and the
unused zero-point, bias-attr and dynamic-quant fields.
Part of pytorch#154444. Depends on pytorch#201055.

Port convolution_backward_data::compute_v2 and
convolution_backward_weights::compute_v2 (with its compute_impl) into
aten/src/ATen/native/mkldnn/detail/ConvBackward.{h,cpp}. The port is
line-for-line and still takes ideep::tensor/attr_t. As in ideep, the
forward hint comes from ideep::convolution_forward::get_primitive_desc.

Switch the backward call sites in mkldnn/Conv.cpp. Drop the fixed
algorithm parameter, the engine parameters, and backward_weights'
unused diff_weight_type branch.
…rimitive_desc

Base this PR on the conv forward port (pytorch#201224) instead of PR 3. The
backward data/weights port now lives in detail/Conv.{h,cpp} next to the
forward code, as in ideep's conv.hpp, and its forward hint calls the
ported get_primitive_desc instead of ideep::convolution_forward::
get_primitive_desc. detail/ConvBackward.{h,cpp} are removed.
Part of pytorch#154444. Depends on pytorch#201224.

Port ideep's deprecated convolution_forward::compute_v2 (with and
without bias) and the code it routes through, the scale/zero-point
compute_dispatch and the int8 conv_deconv_utils::prepare_parameters,
into aten/src/ATen/native/mkldnn/detail/Conv.{h,cpp}. The port is
line-for-line, still takes ideep::tensor/attr_t, and shares ideep's
primitive cache, so behavior is unchanged.

Switch the two compute_v2 calls in mkldnn/ConvPrepack.cpp. Drop the
algorithm, prop_kind, lowp_kind and engine parameters ATen never passes,
and an unused weights_zero_point local.
Port the int8 paths of ideep::matmul_forward used by quantized linear into
detail/Matmul.{h,cpp}. Part of pytorch#154444.
- TensorFactories: drop the int32_t-dims note; dnnl::memory::dims is int64_t.
- qconv: the dst-scale comments named a nonexistent `scale_size`; describe
  what the code actually passes (1/output_scale and dst_zero_points).
@pytorch-bot

pytorch-bot Bot commented Nov 13, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/204807

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit 3922cc2 with merge base 30c5b5d (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@pytorch-bot pytorch-bot Bot added module: cpu CPU specific problem (e.g., perf, algorithm) module: mkldnn Related to Intel IDEEP or oneDNN (a.k.a. mkldnn) integration release notes: quantization release notes category release notes: releng release notes category labels Nov 13, 2026
Move the fp32 and int8 prepare_parameters overloads out of Conv.cpp's
anonymous namespace and declare both in Conv.h. The transposed
convolution port reuses them from Deconv.cpp; with only the fp32
overload at namespace scope, the int8 one in the anonymous namespace
hides it and the fp32 calls fail to compile.
Part of pytorch#154444. Depends on pytorch#201224.

Port the fp32 transposed-convolution path ATen uses from ideep's
deconv.hpp into aten/src/ATen/native/mkldnn/detail/Deconv.{h,cpp}:
convolution_transpose_forward::compute_v3 and expected_weights_desc,
convolution_transpose_backward_data::compute_v3, and
convolution_transpose_backward_weights::compute_v3 with their file-local
helpers. The port is line-for-line, still takes ideep::tensor/attr_t,
and shares ideep's deconvolution primitive cache, so behavior is
unchanged.

Give the already-ported fp32 prepare_parameters external linkage and
declare it in Conv.h so Deconv.cpp can use it, as ideep's deconv uses
conv_deconv_utils. Switch the call sites in mkldnn/Conv.cpp,
MKLDNNConversions.cpp and quantized/cpu/qconv_prepack.cpp. Quantized
deconvolution in qconv.cpp remains on ideep.
…ration-new

# Conflicts:
#	build_variables.bzl
…emoval/integration-new

# Conflicts:
#	aten/src/ATen/native/mkldnn/Normalization.cpp
#	build_variables.bzl
…/integration-new

# Conflicts:
#	aten/src/ATen/native/mkldnn/MKLDNNConversions.cpp
#	build_variables.bzl
…ion-new

# Conflicts:
#	aten/src/ATen/native/mkldnn/MKLDNNConversions.cpp
#	build_variables.bzl
…l/integration-new

# Conflicts:
#	aten/src/ATen/native/mkldnn/detail/Conv.cpp
#	aten/src/ATen/native/mkldnn/detail/Conv.h
…ation-new

# Conflicts:
#	aten/src/ATen/native/mkldnn/MKLDNNConversions.cpp
#	build_variables.bzl
…ation-new

# Conflicts:
#	build_variables.bzl
…val/integration-new

# Conflicts:
#	aten/src/ATen/native/quantized/cpu/OnednnUtils.h
Port ideep::utils::{lru_cache,computation_cache,create_key,to_bytes} into
detail/PrimitiveCache.h (namespace at::native::mkldnn::utils) and switch the
ported conv, deconv, inner product and matmul ops to it. clear_computation_cache
now clears the ported convolution store. Same capacity (1024; 1 on aarch64),
LRU_CACHE_CAPACITY override, per-thread stores and key bytes as ideep.
Part of pytorch#154444.
Mechanical rename of ideep::attr_t to at::native::mkldnn::Attr (an alias in
detail/Attr.h) so the following commit can swap in a ported class without
touching call sites again. Part of pytorch#154444.
Replace the Attr alias with a port of ideep::attr_t in detail/Attr.h: the
constructors, deep-copy assignment, scale/zero-point storage, has_op_kind,
non_negitive_output, to_bytes (cache key) and the factory helpers ATen uses.
Unused helpers are not ported. A conversion to ideep::attr_t, carrying the
scale and zero-point maps, remains until ideep::tensor is ported, since its
reorders still take ideep::attr_t. Part of pytorch#154444.
Mechanical rename of ideep::tensor to at::native::mkldnn::ITensor (an alias in
detail/Tensor.h) so the tensor port can swap in a ported class without touching
call sites again. Generated code is unchanged. Part of pytorch#154444.
Port the ideep helpers ATen still calls into detail/Utils.h: the default and
empty scale/zero-point constants, lowp_kind, rnn_kind, has_bf16/fp16_type_support,
and utils:: (scale/zero-point masks, group_dims, get_compatible_dilates,
set_verbose). ideep::post_ops uses become dnnl::post_ops. Engine and Stream
become aliases in detail/Tensor.h; they are ported together with the tensor
class, which allocates through the engine. Part of pytorch#154444.
at::Stream (c10::Stream) is visible inside at::native::mkldnn, and an
unqualified Stream there would silently pick the oneDNN stream. Use
IStream, matching the ITensor naming.
Port ideep's tensor (with its nested desc), engine, stream and allocator
into aten/src/ATen/native/mkldnn/detail/Tensor.h as
at::native::mkldnn::{ITensor, Engine, Stream}. The code is ported
line-for-line from ideep's tensor.hpp, abstract_types.hpp and
allocators.hpp, with ideep's comments kept. Members that ATen cannot
reach are dropped. The CPU engine allocator and the MKLDNN_* -> DNNL_*
environment translation that ideep_pin_singletons.hpp set up are now
registered in IDeepRegistration.cpp.

No behavior change: oneDNN verbose primitive logs and primitive-cache
miss counts are identical before and after.
@frost-intel
frost-intel force-pushed the ideep-removal/21-port-ideep-tensor branch from 0c0ecc6 to 3922cc2 Compare November 19, 2026 16:43
pytorchmergebot pushed a commit that referenced this pull request Nov 19, 2026
…1053)

## Linked issue or supporting maintainer
Part of #154444

## BC-breaking?
No

## Summary (human written only)
See #154444 for ideep removal discussion.
Replace ideep type aliases with the oneDNN or std types they name. Each is a plain `using` in ideep, so this is a pure spelling change with no effect on generated code. It removes about a third of the remaining ideep references from ATen CPU code.

#### Fake Stack
* #201052
* -> #201053
* Port ops:
* #201055
* #201059
* #201062
* #201080
* #201083
* #201126
* #201194
* #201224
* #201229
* #202547
* #202611
* #202622
* #203645
* #204617
* #204615
* Port classes and utils:
* #204801
* #204805
* #204806
* #204807
* Final removal:
* #204808

## Agent details (if applicable)

Developed with assistance from Claude Opus 5.5
Summary:
> Replace ideep type aliases with the oneDNN (or std) types they name:
> data_type, dims, format_tag/tag, prop_kind, algorithm, scale_t,
> zero_point_t and exec_args. Each is a plain `using` in ideep, so this is
> a pure spelling change with no effect on generated code. It removes
> about a third of the remaining ideep references from ATen CPU code
> without touching any ideep-specific behavior.

Pull Request resolved: #201053
Approved by: https://github.com/albanD, https://github.com/malfet
pytorchmergebot pushed a commit that referenced this pull request Nov 25, 2026
## Linked issue or supporting maintainer
Part of #154444

## BC-breaking?
No

## Summary (human written only)
Ports `tensor`, `engine`, and `stream` from ideep to ATen, as well as replacing aliases.

After this PR, ATen no longer calls any ideep code.

## Agent details (if applicable)
Developed with assistance from Claude Opus 5.5.

> Part of #154444 (remove the ideep submodule).
>
> This ports ideep's `tensor` (with its nested `desc`), `engine`, `stream` and allocator into `aten/src/ATen/native/mkldnn/detail/Memory.h`, as `at::native::mkldnn::{MkldnnMemory, Engine, IStream}`. They replace the aliases added earlier in this series. The code is ported line-for-line from ideep's `tensor.hpp`, `abstract_types.hpp` and `allocators.hpp`, and ideep's comments are kept. After this PR, ATen no longer calls any ideep code. The only thing left is the `#include`, which the next PR removes along with the submodule.
>
> ### Changes
> - `detail/Memory.h`:
>   - `utils::allocator`;
>   - `Engine`, a subclass of `dnnl::engine` with `cpu_engine()` and the allocator hooks;
>   - `IStream::default_stream()`;
>   - `MkldnnMemory`, a subclass of `dnnl::memory`, with its nested `desc`.
> - `detail/Attr.h`: no longer includes ideep, and `operator ideep::attr_t` is removed (nothing needs to convert back to ideep anymore). Adds the `get_scales` / `has_scales_for` / `get_zero_points` / `has_zero_points_for` helpers that the ported tensor code uses.
> - `detail/IdeepUtils.h`: adds `utils::array_cmp`.
> - `IDeepRegistration.cpp`: defines `Engine::cpu_engine()` and registers the c10 CPU allocator with it, together with the `MKLDNN_*` -> `DNNL_*` environment-variable translation. This replaces the setup that ideep's `ideep_pin_singletons.hpp` did before.
>
> ### Deviations from ideep
> - Members of `tensor` and `desc` that ATen cannot reach are dropped: the `descriptor` typedef; `desc::is_iohw`, `is_limited_blockable`, `is_nchw` and `to_dims`; and `get_descriptor`, `dup_desc`, `dup_descriptor`, `reinit_like` (both overloads), `get_public_format_dims`, `reorder_from`, `extract_submemory` (both overloads), `insert_submemory`, `need_reorder`, `get_hash` and `resize`.
> - `IDEEP_ENFORCE` on oneDNN C API calls becomes `dnnl::error::wrap_c_api` under `#ifndef NDEBUG`, which matches ideep's behavior in release builds.
> - The loop index in `feed_from`, and in `array_cmp`, is now `size_t` instead of `int`, so they compile under `-Wsign-compare -Werror`. In-tree code is checked with those warnings, while ideep was compiled as a system header.
> - `Engine::cpu_engine()` is defined out of line in `IDeepRegistration.cpp` and marked `TORCH_API`, replacing ideep's `IDEEP_EXPORT` declaration and its definition in `ideep_pin_singletons.hpp`. This keeps a single engine instance across shared libraries, as before.
> - ideep's GPU engine path is not ported. ATen only uses the CPU engine here; XPU has its own oneDNN integration.
>
> ### Testing
> No behavior change:
> - oneDNN verbose primitive logs are identical before and after for `test_mkldnn`, quantized conv, conv-transpose and linear, and matmul, as are the outputs of targeted probe scripts.
> - Primitive-cache miss counts are identical at the default `LRU_CACHE_CAPACITY` and at `LRU_CACHE_CAPACITY=1`.
> - `to_mkldnn` buffers are still allocated through c10's CPU allocator (they show up in the memory profiler), and `MKLDNN_VERBOSE=1` still turns on oneDNN verbose output.
> - The memory-descriptor blob returned by `mkldnn::_get_mkldnn_serialized_md` is unchanged apart from uninitialized struct padding. That padding varies from process to process on `main` too, and will be reported in a separate issue.
> - Compiles cleanly with `-Wall -Wextra -Wsign-compare -Werror` in release and debug builds.
>
> These measurements were taken when this PR was first submitted. Since then the series has only had review changes (rewritten comments, removed dead code and unused includes, a typo rename); none change behavior. The rebuilt stack passes `-Wall -Wextra -Wsign-compare -Werror` per commit, and `test_mkldnn`, the mkldnn conv tests and the quantized conv/linear tests were rerun at the tip.
>
> ### Exported symbols
> `libtorch_cpu.so` no longer exports `ideep::engine::cpu_engine()` and `ideep::engine::gpu_engine()`. Three
> `at::native` helpers that took ideep types now take `MkldnnMemory` / `MkldnnMemory::desc`, so their mangled names change:
> `itensor_view_from_dense`, `itensor_view_from_const_dense` and `new_with_itensor_mkldnn`. These are internal
> ATen functions, and ideep headers were never shipped in `torch/include`, so out-of-tree code could not use them
> through public headers.
>
> Previously submitted as #204807.
Pull Request resolved: #206276
Approved by: https://github.com/albanD
ghstack dependencies: #205978, #205979, #205980
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module: cpu CPU specific problem (e.g., perf, algorithm) module: mkldnn Related to Intel IDEEP or oneDNN (a.k.a. mkldnn) integration open source release notes: quantization release notes category release notes: releng release notes category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants