Class: Kumi::IR::Vec::Ops::Constant
- Inherits:
-
Node
- Object
- Base::Instruction
- Node
- Kumi::IR::Vec::Ops::Constant
- Defined in:
- lib/kumi/ir/vec/ops/core_ops.rb
Instance Attribute Summary
Attributes inherited from Base::Instruction
#attributes, #axes, #dtype, #effects, #inputs, #metadata, #opcode, #result
Instance Method Summary collapse
-
#initialize(value:, **kwargs) ⇒ Constant
constructor
A new instance of Constant.
Methods inherited from Node
Methods inherited from Base::Instruction
#control_effect?, #defs, #effectful?, #io_effect?, #memory_effect?, #normalized_attributes, #printer_attributes, #printer_axes, #printer_dtype, #produces?, #stamp, #state_effect?, #to_h, #to_print_string, #uses, #validate!, #value_signature, #with_metadata
Constructor Details
#initialize(value:, **kwargs) ⇒ Constant
Returns a new instance of Constant.
10 11 12 |
# File 'lib/kumi/ir/vec/ops/core_ops.rb', line 10 def initialize(value:, **kwargs) super(inputs: [], attributes: { value: value }, **kwargs) end |