class_docstr: An operation which builds an OpenAlphaTensor model.
class_docstr_tok: ["An","operation","which","builds","an","OpenAlphaTensor","model","."]
docstr: Builds the OpenAlphaTensor model.
  
  Args:
      tensor_length (int): Number of tensors to as history.
      input_size (int): Flattened size of the matrices to be multiplied.
      scalars_size (int): Size of the scalar vectors fed to the torso
      model.
      emb_dim (int): Embedding dimension.
      n_steps (int): Number of steps used to get a single action out of
      a triplet.
      n_logits (int): Number of logits output by the policy head.
      n_samples (int): Number of samples used by the policy head at
      evaluation time.
docstr_tok: ["Builds","the","OpenAlphaTensor","model",".","Args",":","tensor_length","(","int",")",":","Number","of","tensors","to","as","history",".","input_size","(","int",")",":","Flattened","size","of","the","matrices","to","be","multiplied",".","scalars_size","(","int",")",":","Size","of","the","scalar","vectors","fed","to","the","torso","model",".","emb_dim","(","int",")",":","Embedding","dimension",".","n_steps","(","int",")",":","Number","of","steps","used","to","get","a","single","action","out","of","a","triplet",".","n_logits","(","int",")",":","Number","of","logits","output","by","the","policy","head",".","n_samples","(","int",")",":","Number","of","samples","used","by","the","policy","head","at","evaluation","time","."]
code: def execute(
      self,
      tensor_length: int,
      input_size: int,
      scalars_size: int,
      emb_dim: int,
      n_steps: int,
      n_logits: int,
      n_samples: int,
  ):
      """Builds the OpenAlphaTensor model.
  
      Args:
          tensor_length (int): Number of tensors to as history.
          input_size (int): Flattened size of the matrices to be multiplied.
          scalars_size (int): Size of the scalar vectors fed to the torso
          model.
          emb_dim (int): Embedding dimension.
          n_steps (int): Number of steps used to get a single action out of
          a triplet.
          n_logits (int): Number of logits output by the policy head.
          n_samples (int): Number of samples used by the policy head at
          evaluation time.
      """
      self._model = AlphaTensorModel(
          tensor_length=tensor_length,
          input_size=input_size,
          scalars_size=scalars_size,
          emb_dim=emb_dim,
          n_steps=n_steps,
          n_logits=n_logits,
          n_samples=n_samples,
      )
  
imports: import json
  from pathlib import Path
  from typing import Any
  import torch
  from nebullvm.operations.base import Operation
  from open_alpha_tensor.core.modules.alpha_tensor import AlphaTensorModel
label_desc: Use image node_id 2 for calling the BuildModelOp obj's underlying member method code with example usage: obj.execute(tensor_length, input_size, scalars_size, emb_dim, n_steps, n_logits, n_samples) without return types