向网络添加输入张量。
Tensor *AddInput(const std::string name, DataType type, Dims dim) noexcept;
参数名 |
输入/输出 |
说明 |
---|---|---|
name |
输入 |
张量的名称。 |
type |
输入 |
张量中保存的数据类型。 |
dim |
输入 |
张量的维度。 |
新的张量,如果添加失败时返回nullptr。