Files
2025-11-17 13:44:17 -08:00

15 lines
465 B
C

// Copyright (c) .NET Foundation and Contributors. All Rights Reserved. See LICENSE in the project root for license information.
#pragma once
#include "Stdafx.h"
#include "Utils.h"
EXPORT_API(int64_t) THSTensor_storage_offset(const Tensor tensor);
EXPORT_API(size_t) THSStorage_nbytes(const Tensor tensor);
EXPORT_API(void) THSStorage_set_nbytes(const Tensor tensor, size_t nbytes);
EXPORT_API(void*) THSStorage_data_ptr(const Tensor tensor);