# dragon¶

## Classes¶

class EagerTensor : Tensor abstraction for eager executing.

class GradientTape : Record the operations for auto differentiation.

class Tensor : Tensor abstraction for graph executing.

class Workspace : Sandbox to isolate the resources and computations.

## Functions¶

assign(…) : Assign the value to input.

cast(…) : Cast the data type of input.

channel_affine(…) : Apply affine transformation along the channels.

channel_normalize(…) : Normalize channels with mean and standard deviation.

channel_shuffle(…) : Shuffle channels between a given number of groups.

concat(…) : Concatenate the inputs along the given axis.

constant(…) : Return a tensor initialized from the value.

copy(…) : Copy the input.

create_function(…) : Create a callable graph from the specified outputs.

device(…) : Context-manager to nest the the device spec.

eager_mode(…) : Context-manager set the eager execution mode.

eager_scope(…) : Context-manager to nest the name for eager resources.

expand_dims(…) : Expand the dimensions of input with size 1.

eye(…) : Return a tensor constructed as the identity matrix.

eye_like(…) :Return a tensor of identity matrix with shape as the other.

fill(…) : Return a tensor filled with the scalar value.

flatten(…) : Flatten the input along the given axes.

function(…) : Compile a function and return an executable.

get_workspace(…) : Return the current default workspace.

gradients(…) : Compute the symbolic derivatives of ys w.r.t. xs .

graph_mode(…) : Context-manager set the graph execution mode.

index_select(…) : Select the elements according to the index along the given axis.

name_scope(…) : Context-manager to nest the name as prefix for operations.

nonzero(…) : Return the index of non-zero elements.

ones(…) : Return a tensor filled with ones.

ones_like(…) : Return a tensor of ones with shape as the other.

one_hot(…) : Return the one-hot representation for input.

python_plugin(…) : Create a plugin operator from the python class.

range(…) : Return a tensor of evenly spaced values within a interval.

repeat(…) : Repeat the elements along the given axis.

reset_workspace(…) : Reset the current default workspace.

reshape(…) : Change the dimensions of input.

shape(…) : Return the shape of input.

slice(…) : Select the elements according to the given sections.

split(…) : Split the input into chunks along the given axis.

squeeze(…) : Remove the dimensions of input with size 1.

stack(…) : Stack the inputs along the given axis.