Class: Kumi::IR::Vec::Ops::AxisIndex
- Inherits:
-
Node
- Object
- Base::Instruction
- Node
- Kumi::IR::Vec::Ops::AxisIndex
- 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(axis:, **kwargs) ⇒ AxisIndex
constructor
A new instance of AxisIndex.
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(axis:, **kwargs) ⇒ AxisIndex
Returns a new instance of AxisIndex.
90 91 92 |
# File 'lib/kumi/ir/vec/ops/core_ops.rb', line 90 def initialize(axis:, **kwargs) super(inputs: [], attributes: { axis: axis.to_sym }, **kwargs) end |