ngraph.ops¶
Factory functions for all ngraph ops.
Functions
absolute 
Return node which applies f(x) = abs(x) to the input node elementwise. 
acos 
Apply inverse cosine function on the input node elementwise. 
add 
Return node which applies f(x) = A+B to the input nodes elementwise. 
asin 
Apply inverse sine function on the input node elementwise. 
atan 
Apply inverse tangent function on the input node elementwise. 
avg_pool 
Return average pooling node. 
batch_norm 
Return batch normalization node. 
broadcast 
Create a node which broadcasts the input node’s values along specified axes to a desired shape. 
ceiling 
Return node which applies ceiling to the input node elementwise. 
concat 
Concatenate input nodes into single new node along specified axis. 
constant 
Create a Constant node from provided value. 
convert 
Return node which casts input node values to specified type. 
convolution 
Return node performing batched convolution operation. 
cos 
Apply cosine function on the input node elementwise. 
cosh 
Apply hyperbolic cosine function on the input node elementwise. 
divide 
Return node which applies f(x) = A/B to the input nodes elementwise. 
dot 
Return node which performs generalized dot product of two input nodes. 
equal 
Return node which checks if input nodes are equal elementwise. 
exp 
Return node which applies exp to the input node elementwise. 
floor 
Return node which applies floor to the input node elementwise. 
function_call 

get_output_element 
Return the nth element of the input tuple. 
greater 
Return node which checks if left input node is greater than the right node elementwise. 
greater_eq 
Return node which checks if left node is greater or equal to the right node elementwise. 
less 
Return node which checks if left input node is less than the right node elementwise. 
less_eq 
Return node which checks if left input node is less or equal the right node elementwise. 
log 
Return node which applies natural logarithm to the input node elementwise. 
logical_not 
Return node which applies logical negation to the input node elementwise. 
max 
Maxreduction operation on input tensor, eliminating the specified reduction axes. 
max_pool 
Return max pooling node. 
maximum 
Return node which applies the maximum operation to input nodes elementwise. 
min 
Minreduction operation on input tensor, eliminating the specified reduction axes. 
minimum 
Return node which applies the minimum operation to input nodes elementwise. 
multiply 
Return node which applies f(x) = A*B to the input nodes elementwise. 
negative 
Return node which applies f(x) = x to the input node elementwise. 
not_equal 
Return node which checks if input nodes are unequal elementwise. 
one_hot 
Create node performing onehot encoding on input data. 
pad 
Return padding node. 
parameter 
Return an ngraph Parameter object. 
power 
Return node which perform elementwise exponentiation operation. 
prod 
Productreduction operation on input tensor, eliminating the specified reduction axes. 
reduce 

relu 
Perform rectified linear unit operation on input node elementwise. 
replace_slice 
Return a copy of dest_node with the specified slice overwritten by the src_node data. 
reshape 
Return reshaped node according to provided parameters. 
reverse 
Perform axisreverse operation. 
select 
Perform an elementwise selection operation on input tensors. 
sign 
Perform elementwise sign operation. 
sin 
Apply sine function on the input node elementwise. 
sinh 
Apply hyperbolic sine function on the input node elementwise. 
slice 
Take a slice of an input tensor, (subtensor) that resides within a bounding box. 
softmax 
Apply softmax operation on each element of input tensor. 
sqrt 
Return node which applies square root to the input node elementwise. 
subtract 
Return node which applies f(x) = AB to the input nodes elementwise. 
sum 
Perform elementwise sums of the input tensor, eliminating the specified reduction axes. 
tan 
Apply tangent function on the input node elementwise. 
tanh 
Return node which applies hyperbolic tangent to the input node elementwise. 