Liking cljdoc? Tell your friends :D

tech.compute.tensor.dimensions.shape

A shape vector entry can be a number of things. We want to be precise with handling them and abstract that handling so new things have a clear path.

A shape vector entry can be a number of things.  We want to be precise
with handling them and abstract that handling so new things have a clear
path.
raw docstring

->2dclj

(->2d shape)

Given dimensions, return new dimensions with the lowest (fastest-changing) dimension unchanged and the rest of the dimensions multiplied into the higher dimension.

Given dimensions, return new dimensions with the lowest (fastest-changing) dimension
unchanged and the rest of the dimensions multiplied into the higher dimension.
sourceraw docstring

->batchclj

(->batch shape)

Given dimensions, return new dimensions with the lowest (fastest-changing) dimension unchanged and the rest of the dimensions multiplied into the higher dimension.

Given dimensions, return new dimensions with the lowest (fastest-changing) dimension
unchanged and the rest of the dimensions multiplied into the higher dimension.
sourceraw docstring

classified-sequence->countclj

(classified-sequence->count {:keys [type min-item max-item sequence]})
source

classified-sequence->elem-idxclj

(classified-sequence->elem-idx {:keys [type min-item max-item sequence] :as dim}
                               shape-idx)
source

classified-sequence->sequenceclj

(classified-sequence->sequence {:keys [min-item max-item type sequence]})
source

classified-sequence-keysclj

source

classified-sequence?clj

(classified-sequence? item)
source

classify-sequenceclj

(classify-sequence item-seq)
source

combine-classified-sequencesclj

(combine-classified-sequences source-sequence select-sequence)

Room for optimization here. But simplest way is easiest to get correct.

Room for optimization here.  But simplest way is easiest to get correct.
sourceraw docstring

direct-shape?clj

(direct-shape? shape)
source

ecountclj

(ecount shape)

Return the element count indicated by the dimension map

Return the element count indicated by the dimension map
sourceraw docstring

indirect-shape?clj

(indirect-shape? shape)
source

monotonic-operatorsclj

source

reverse-classified-sequenceclj

(reverse-classified-sequence {:keys [type sequence] :as item})
source

reverse-shapeclj

(reverse-shape shape-vec)
source

shape->count-vecclj

(shape->count-vec shape-vec)
source

shape-entry->countclj

(shape-entry->count shape-entry)

Return a vector of counts of each shape.

Return a vector of counts of each shape.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close