Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions runtime/core/evalue.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,13 @@ struct EValue {
// Template constructor that allows construction from types that can be
// dereferenced to produce a type that EValue can be implicitly constructed
// from.
template <typename T>
/*implicit*/ EValue(
T&& value,
typename std::enable_if<std::is_convertible<
decltype(*std::forward<T>(value)),
EValue>::value>::type* = 0) {
template <
typename T,
typename = typename std::enable_if<std::is_convertible<
decltype(*std::forward<T>(std::declval<T>())), // declval to simulate
// forwarding
EValue>::value>::type>
/*implicit*/ EValue(T&& value) {
ET_CHECK_MSG(value != nullptr, "Pointer is null.");
// Note that this ctor does not initialize this->tag directly; it is set by
// moving in the new value.
Expand Down
1 change: 1 addition & 0 deletions runtime/core/exec_aten/exec_aten.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#pragma once

#include <executorch/runtime/core/tensor_shape_dynamism.h> // @manual
#include <executorch/runtime/platform/compiler.h>
#ifdef USE_ATEN_LIB
#include <ATen/Tensor.h> // @manual
#include <c10/core/Device.h>
Expand Down
Loading