onnxruntime/include/onnxruntime/core/framework
Scott McKay b3cb775cf9
Two fixes involving minimal builds (#17000)
### Description
<!-- Describe your changes. -->
- allocation planner was breaking if graph had no nodes
- in this particular model a branch of an If node returned an outer
scope value directly.

- if model used non-tensor types and sparse tensors are disabled the
call to IsSpareTensor causes an exception when prematurely terminates
the code.
- it's perfectly fine to check if a value is a sparse tensor when
support for them is disabled. we just can't do anything with that
OrtValue which is what the current ifdef's after the call to
IsSparseTensor handle.




### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
Fix model execution failure for partner with model that uses sequences
in a minimal build with sparse tensors disabled.
2023-08-23 16:01:22 +10:00
..
alloc_kind.h
allocator.h
buffer_deleter.h
customregistry.h
data_types.h
data_types_internal.h
endian.h
execution_provider.h
float8.h
float16.h
framework_common.h
framework_provider_common.h
func_api.h
kernel_def_builder.h
kernel_registry.h
op_kernel.h
op_kernel_context.h
op_kernel_info.h
op_node_proto_helper.h
ort_value.h
ortdevice.h
ortmemoryinfo.h
provider_options.h
provider_options_utils.h
provider_shutdown.h
run_options.h
sparse_tensor.h
stream_handles.h
tensor.h
tensor_shape.h
to_tensor_proto_element_type.h