Skip to content
This repository was archived by the owner on Jan 24, 2024. It is now read-only.
This repository was archived by the owner on Jan 24, 2024. It is now read-only.

Delete VarDesc in Variable #21

Closed
@tonyyang-svail

Description

@tonyyang-svail

https://github.com/PaddlePaddle/tape/blob/develop/src/variable.h#L84

Tensor and SelectedRow already have dim and dtype, doesn't need duplicated information VarDesc.

The problem is:

  1. Without OpDesc, InferShape only exists in OperatorKernel. So maybe only OperatorWithKernel can be added to tape.
  2. InferVarType only exists in the Desc level. There is no runtime InferVarType.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions