ADD file via upload

This commit is contained in:
Dengrx 2023-08-27 14:57:17 +08:00
parent 0251e70a4a
commit 9dc45c6663
1 changed files with 25 additions and 0 deletions

25
state_ops_declare.cc Normal file
View File

@ -0,0 +1,25 @@
/**
* Copyright 2019 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include "transform/graph_ir/op_declare/state_ops_declare.h"
//"Variable" 运算符通常用于表示模型中的变量(例如权重和偏置项)
namespace mindspore::transform {
// Variable
INPUT_MAP(Variable) = {{1, INPUT_DESC(x)}};
// 定义 "Variable" 运算符的输入映射(INPUT_MAP)将输入1映射为名为 "x" 的输入描述(INPUT_DESC)
ATTR_MAP(Variable) = EMPTY_ATTR_MAP;
// 定义 "Variable" 运算符的属性映射(ATTR_MAP),此处为空(EMPTY_ATTR_MAP)
} // namespace mindspore::transform