Session - Maple Help

DeepLearning

 Session
 get a new computation session Calling Sequence Session() Description

 • The Session() command returns a new Session object for the current DataflowGraph.
 • This function is part of the DeepLearning package, so it can be used in the short form Session(..) only after executing the command with(DeepLearning). However, it can always be accessed through the long form of the command by using DeepLearning[Session](..). Note

 • To obtain the default computation session for the current DataFlowGraph rather than a new session, use GetDefaultSession. Examples

Here we execute the same simple graph (which just multiplies two Tensors) in the default computation session and in a new session.

 > $\mathrm{with}\left(\mathrm{DeepLearning}\right):$
 > $a≔\mathrm{Variable}\left(\left[21.5,72.0\right],\mathrm{datatype}=\mathrm{float}\left[8\right]\right)$
 ${a}{≔}\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Name: Variable:0}}\\ {\mathrm{Shape: undefined}}\\ {\mathrm{Data Type: float\left[8\right]}}\end{array}\right]$ (1)
 > $b≔\mathrm{Variable}\left(\left[32.5,86.0\right],\mathrm{datatype}=\mathrm{float}\left[8\right]\right)$
 ${b}{≔}\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Name: Variable:0}}\\ {\mathrm{Shape: undefined}}\\ {\mathrm{Data Type: float\left[8\right]}}\end{array}\right]$ (2)
 > $c≔\mathrm{Variable}\left(\left[17.2,94.2\right],\mathrm{datatype}=\mathrm{float}\left[8\right]\right)$
 ${c}{≔}\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Name: Variable:0}}\\ {\mathrm{Shape: undefined}}\\ {\mathrm{Data Type: float\left[8\right]}}\end{array}\right]$ (3) Compatibility

 • The DeepLearning[Session] command was introduced in Maple 2018.
{"ft_lang_label":"__label__en","ft_lang_prob":0.59289783,"math_prob":0.9971,"size":1324,"snap":"2022-27-2022-33","text_gpt3_token_len":329,"char_repetition_ratio":0.15833333,"word_repetition_ratio":0.01863354,"special_character_ratio":0.20468278,"punctuation_ratio":0.17083333,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9893639,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12],"im_url_duplicate_count":[null,null,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-07-03T17:27:45Z\",\"WARC-Record-ID\":\"<urn:uuid:4608bf47-e964-48ee-bcae-fcc083ccdd83>\",\"Content-Length\":\"155886\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:33534053-a678-4720-a0ca-4e97a9fe8cbf>\",\"WARC-Concurrent-To\":\"<urn:uuid:fb00a02f-bd7e-44b6-a59c-b5edef652c83>\",\"WARC-IP-Address\":\"199.71.183.28\",\"WARC-Target-URI\":\"https://jp.maplesoft.com/support/help/maple/view.aspx?path=DeepLearning%2FSession\",\"WARC-Payload-Digest\":\"sha1:DTX2ISJQODRCH4V6AMBG52XNC4LMCQPI\",\"WARC-Block-Digest\":\"sha1:NWH5BUUPZC7BY2LZIAIZ43YANEKCRG3Y\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656104248623.69_warc_CC-MAIN-20220703164826-20220703194826-00208.warc.gz\"}"}