blace.ai
blace::ops::IndexPutOp Class Reference

#include <public_ops.h>

Inheritance diagram for blace::ops::IndexPutOp:

Public Member Functions

 IndexPutOp (blace::ops::OpP input, ml_core::BlaceIndexVec indices, blace::ops::OpP val)
 
 IndexPutOp (blace::ops::OpP input, ml_core::BlaceIndexVec indices, double val)
 
 IndexPutOp (blace::ops::OpP input, ml_core::BlaceIndexVec indices, float val)
 
 IndexPutOp (blace::ops::OpP input, ml_core::BlaceIndexVec indices, int val)
 

Detailed Description

Operator to put values into a tensor.

Constructor & Destructor Documentation

◆ IndexPutOp() [1/4]

blace::ops::IndexPutOp::IndexPutOp ( blace::ops::OpP  input,
ml_core::BlaceIndexVec  indices,
blace::ops::OpP  val 
)

Puts a value from a blace::ops::OpP into the input tensor at the specified indices.

Parameters
input
indices
val

◆ IndexPutOp() [2/4]

blace::ops::IndexPutOp::IndexPutOp ( blace::ops::OpP  input,
ml_core::BlaceIndexVec  indices,
double  val 
)

Puts a double into the input tensor at the specified indices.

Parameters
input
indices
val

◆ IndexPutOp() [3/4]

blace::ops::IndexPutOp::IndexPutOp ( blace::ops::OpP  input,
ml_core::BlaceIndexVec  indices,
float  val 
)

Puts a float into the input tensor at the specified indices.

Parameters
input
indices
val

◆ IndexPutOp() [4/4]

blace::ops::IndexPutOp::IndexPutOp ( blace::ops::OpP  input,
ml_core::BlaceIndexVec  indices,
int  val 
)

Puts an integer into the input tensor at the specified indices.

Parameters
input
indices
val