init v0.23.0

Signed-off-by: Sun Ruoxi <sunruoxi@4paradigm.com>
This commit is contained in:
2026-08-27 15:11:51 +08:00
parent b582a8e7d1
commit 7f8a1b1f7a
2849 changed files with 712887 additions and 22001 deletions

View File

@@ -0,0 +1,29 @@
// Copyright (c) 2020, Huawei Technologies Co., Ltd
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
#pragma once
#include <c10/core/StorageImpl.h>
#include "NPUStorageImpl.h"
namespace vllm_ascend
{
class NPUBridge
{
public:
// at::tensor to NPUStorageImpl
static NPUStorageImpl *GetNpuStorageImpl(const at::Tensor &tensor);
// c10::StorageImpl to NPUStorageImpl
static NPUStorageImpl *GetNpuStorageImpl(c10::StorageImpl *storageImpl);
// c10::Storage to NPUStorageImpl
static NPUStorageImpl *GetNpuStorageImpl(c10::Storage &&storage);
// tensor to NPUStorageDesc
static NPUStorageDesc &GetNpuStorageImplDesc(const at::Tensor &tensor);
};
}