Class: Kumi::IR::Loop::Ops::LoopStart
- Inherits:
-
Node
- Object
- Base::Instruction
- Node
- Kumi::IR::Loop::Ops::LoopStart
- Defined in:
- lib/kumi/ir/loop/ops/core_ops.rb
Instance Attribute Summary
Attributes inherited from Base::Instruction
#attributes, #axes, #dtype, #effects, #inputs, #metadata, #opcode, #result
Instance Method Summary collapse
- #axis ⇒ Object
- #index ⇒ Object
-
#initialize(source:, axis:, index:, **kwargs) ⇒ LoopStart
constructor
A new instance of LoopStart.
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(source:, axis:, index:, **kwargs) ⇒ LoopStart
Returns a new instance of LoopStart.
68 69 70 71 72 73 74 75 |
# File 'lib/kumi/ir/loop/ops/core_ops.rb', line 68 def initialize(source:, axis:, index:, **kwargs) super( inputs: [source], attributes: { axis: axis.to_sym, index: index }, effects: [Base::Effects::CONTROL], **kwargs ) end |
Instance Method Details
#axis ⇒ Object
77 |
# File 'lib/kumi/ir/loop/ops/core_ops.rb', line 77 def axis = attributes[:axis] |
#index ⇒ Object
78 |
# File 'lib/kumi/ir/loop/ops/core_ops.rb', line 78 def index = attributes[:index] |