DeepLearning/Tensor/Datatype - Maple Programming Help

Home : Support : Online Help : Programming : DeepLearning Package : Tensors : Query Properties of Tensors : DeepLearning/Tensor/Datatype

DeepLearning/Tensor/Datatype

compute sum over entries of a Tensor

 Calling Sequence Datatype(t)

Parameters

 t - Tensor

Description

 • The Datatype(t) command returns a Maple type corresponding to the datatype specified for the Tensor t.

Examples

 > $\mathrm{with}\left(\mathrm{DeepLearning}\right):$
 > $t≔\mathrm{Constant}\left(⟨⟨1.,2.⟩|⟨3.,4.⟩|⟨5.,6.⟩⟩,\mathrm{datatype}=\mathrm{float}\left[4\right]\right)$
 ${t}{≔}\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Name: Const:0}}\\ {\mathrm{Shape: \left[2, 3\right]}}\\ {\mathrm{Data Type: float\left[4\right]}}\end{array}\right]$ (1)
 > $\mathrm{Datatype}\left(t\right)$
 ${{\mathrm{float}}}_{{4}}$ (2)

Compatibility

 • The DeepLearning/Tensor/Datatype command was introduced in Maple 2018.