Accera v1.2 Reference
Module functions
accera.cast
(value, type)
accera.create_dimensions
([role])
accera.create_parameters
()
accera.create_parameter_grid
(parameter_choices[, filter_func, sample, seed])
accera.fuse
(schedules[, partial])
Top level enumerations
accera.CacheStrategy
accera.ScalarType
accera.MMAFragmentOp
accera.MMASchedulingPolicy
accera.MMAShape
accera.Role
Classes
class accera.Array
A multidimensional array of scalar elements.
Constructors
Array
(role[, data, element_type, layout, offset, shape])
Enumerations
Methods
deferred_layout
(layout)
sub_array
(offsets, shape[, strides])
slice
(sliced_dims, sliced_offsets)
class accera.Cache
A local copy of an Array
block.
class accera.Index
An index representing one of the loops in a Nest
or one of the iteration-space dimensions of a Schedule
or a Plan
.
class accera.Nest
The logic of a loop nest.
Constructors
Nest
(shape)
Methods
iteration_logic
(logic)
create_plan
([target])
create_schedule
()
get_indices
()
class accera.Package
Represents a collection of functions that can be built and emitted for use in client code.
Constructors
Package
()
Enumerations
Methods
add_description
([author, license, other, version])
add
(args, source[, base_name, parameters])
build
(name[, error_path, format, mode, os, tolerance])
class accera.Parameter
A placeholder that can be used instead of concrete values when constructing or calling the methods of a Nest
, Schedule
, or Plan
.
class accera.Plan
A scheduled (ordered) loop nest with target-specific implementation details.
Methods
cache
(source[, index, trigger_index, layout, level, trigger_level, max_elements, thrifty, location, double_buffer, double_buffer_location, vectorize])
bind
(indices, grid)
kernelize
(unroll_indices[, vectorize_indices])
parallelize
(indices[, pin, policy, max_threads])
tensorize
(indices, mma_shape[, use_static_offsets, num_total_passes, num_fused_passes, scheduling_policy])
unroll
(index)
vectorize
(index)
class accera.Scalar
A scalar element.
Constructors
class accera.Dimension
A specialization of Scalar with element_type
as ScalarType.index.
Constructors
class accera.Schedule
A scheduled (ordered) loop nest with no target-specific implementation details.
Methods
create_plan
([target])
pad
(index, size)
reorder
(indices)
skew
(index, reference_index)
split
(index, size)
tile
(indices, sizes)
get_indices
()
class accera.FusedSchedule
Child class of class accera.Schedule
created as a result of fusing multiple schedules.
Methods (in addition to the inherited functions from class accera.Schedule
)
class accera.Target
A target platform for the cross-compiler.
Constructors
Target
([architecture, cache_lines, cache_sizes, category, extensions, family, frequency_GHz, model, name, num_cores, num_threads, turbo_frequency_GHz])