BIGtensor-GPU  1.0
Operation Class Referenceabstract

Compute binary operations for tensors. More...

Inheritance diagram for Operation:
BIGtensor

Public Member Functions

void TensorOP (char *in_tensor_A_path, OP op, char *in_tensor_B_path, char *out_tensor_path, const GPU_MODE _gpu_mode)
 Execution of basic binary operations with given two tensors. More...
 
void EqualTo (char *in_tensor_A_path, char *in_tensor_B_path, char *out_tensor_path, const GPU_MODE _gpu_mode)
 Check if two tensor A and B are the same. More...
 
void NModeProduct (char *in_tensor_path, char *in_sparse_matrix_path, int n_mode, char *out_tensor_path, const GPU_MODE _gpu_mode)
 N-mode product of a tensor and a sparse matrix. More...
 

Detailed Description

Compute binary operations for tensors.

Member Function Documentation

◆ EqualTo()

void Operation::EqualTo ( char *  in_tensor_A_path,
char *  in_tensor_B_path,
char *  out_tensor_path,
const GPU_MODE  _gpu_mode 
)

Check if two tensor A and B are the same.

Parameters
in_tensor_A_pathinput tensor A path
in_tensor_B_pathinput tensor B path
out_tensor_pathoutput tensor path
_gpu_modegpu mode for this computation (default: gpu_mode of a BIGtensor instance)
Returns
None
Exceptions
None

◆ NModeProduct()

void Operation::NModeProduct ( char *  in_tensor_path,
char *  in_sparse_matrix_path,
int  n_mode,
char *  out_tensor_path,
const GPU_MODE  _gpu_mode 
)

N-mode product of a tensor and a sparse matrix.

Parameters
in_tensor_pathinput tensor path
in_sparse_matrix_pathinput sparse matrix path
n_modetarget mode
out_tensor_pathoutput tensor path
_gpu_modegpu mode for this computation (default: gpu_mode of a BIGtensor instance)
Returns
None
Exceptions
None

◆ TensorOP()

void Operation::TensorOP ( char *  in_tensor_A_path,
OP  op,
char *  in_tensor_B_path,
char *  out_tensor_path,
const GPU_MODE  _gpu_mode 
)

Execution of basic binary operations with given two tensors.

Parameters
in_tensor_A_pathinput tensor A path
opoperator (supporting: +, -, *, /)
in_tensor_B_pathinput tensor B path
out_tensor_pathoutput tensor path
_gpu_modegpu mode for this computation (default: gpu_mode of a BIGtensor instance)
Returns
None
Exceptions
None