Promote
Description
The Promote class is used to indicate that the output data type is the promotion type between the data types specified by the input or attribute.
Prototype
class Promote {
public:
Promote(const std::initializer_list<const char *> &syms);
std::vector<const char *> Syms() const; // Return the symbol name involved in type promotion.
Promote(const Promote &other) = delete;
Promote &operator=(const Promote &other) = delete;
Promote(Promote &&other) noexcept;
Promote &operator=(Promote &&other) noexcept;
private:
std::shared_ptr<void> data_;
};
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
syms |
Input |
List of type symbols involved in promotion. Symbols include symbols of input types or symbols specified by attributes. |
other |
Input |
Another TensorData object. |
Returns
None
Exception Handling
None
Restrictions
None
Parent topic: GE Namespace