Class: Kumi::IR::DF::Ops::MakeObject
- Inherits:
-
Node
- Object
- Base::Instruction
- Node
- Kumi::IR::DF::Ops::MakeObject
- Defined in:
- lib/kumi/ir/df/ops/make_object.rb
Instance Attribute Summary
Attributes inherited from Base::Instruction
#attributes, #axes, #dtype, #effects, #inputs, #metadata, #opcode, #result
Instance Method Summary collapse
-
#initialize(inputs:, keys:, **kwargs) ⇒ MakeObject
constructor
A new instance of MakeObject.
- #keys ⇒ Object
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(inputs:, keys:, **kwargs) ⇒ MakeObject
Returns a new instance of MakeObject.
10 11 12 13 14 15 16 |
# File 'lib/kumi/ir/df/ops/make_object.rb', line 10 def initialize(inputs:, keys:, **kwargs) super( inputs: Array(inputs), attributes: { keys: Array(keys).map(&:to_sym) }, **kwargs ) end |
Instance Method Details
#keys ⇒ Object
18 |
# File 'lib/kumi/ir/df/ops/make_object.rb', line 18 def keys = attributes[:keys] |