如何評價MacOS Big Sur正式版?值得更新嗎?

時間 2021-05-12 05:36:25

1樓:探尋可能

第三次給Metal Performance Shaders Graph打廣告了,之前Xcode12出來後第一時間嘗試了demo:

如何評價改版設計的 Xcode 12?

但是當時系統沒有更新所以catalyst不支援,現在更新後的第一時間也來玩一下demo,catalyst很順利的跑通,這也就意味著,用Mac做深度學習成為可能:

sourcePlaceholderTensor

=graph

.placeholder

(shape:[

batchSize

asNSNumber

,MNISTSize

*MNISTSize

asNSNumber

],name

:nil

)labelsPlaceholderTensor

=graph

.placeholder

(shape:[

batchSize

asNSNumber

,MNISTNumClasses

asNSNumber

],name

:nil

)var

variableTensors=[

MPSGraphTensor

]()let

reshapedInput

=graph

.reshape

(sourcePlaceholderTensor

,shape:[

batchSize

asNSNumber

,MNISTSize

asNSNumber

,MNISTSize

asNSNumber,1

],name

:nil

)let

conv0Tensor

=MNISTClassifierGraph

.addConvLayer

(graph

:graph

,sourceTensor

:reshapedInput

,weightsShape:[

5,5,

1,32],

desc

:convDesc

,variableTensors:&

variableTensors

)let

pool0Tensor

=graph

.maxPooling2D

(withSourceTensor

:conv0Tensor

,descriptor

:poolDesc

,name

:nil

)let

conv1Tensor

=MNISTClassifierGraph

.addConvLayer

(graph

:graph

,sourceTensor

:pool0Tensor

,weightsShape:[

5,5,

32,64],

desc

:convDesc

,variableTensors:&

variableTensors

)let

pool1Tensor

=graph

.maxPooling2D

(withSourceTensor

:conv1Tensor

,descriptor

:poolDesc

,name

:nil

)let

reshapeTensor

=graph

.reshape

(pool1Tensor

,shape:[

-1,64

*7*7

asNSNumber

],name

:nil

)let

fc0Tensor

=MNISTClassifierGraph

.addFullyConnectedLayer

(graph

:graph

,sourceTensor

:reshapeTensor

,weightsShape:[

7*7*

64as

NSNumber

,1024

],hasActivation

:true

,variableTensors:&

variableTensors

)let

fc1Tensor

=MNISTClassifierGraph

.addFullyConnectedLayer

(graph

:graph

,sourceTensor

:fc0Tensor

,weightsShape:[

1024,10

],hasActivation

:false

,variableTensors:&

variableTensors

)let

softmaxTensor

=graph

.softMax

(with

:fc1Tensor

,axis:-

1,name

:nil

)let

lossTensor

=graph

.softMaxCrossEntropy

(fc1Tensor

,labels

:labelsPlaceholderTensor

,axis:-

1,reuctionType:.

sum,

name

:nil

)結合最近發布的M1晶元,基本上不用再看TF4Swift了,就算是Google那幫人搞出來,也不一定在Arm上能夠跑的起來。而蘋果由此實現了深度學習從晶元,編譯器,語言,框架,部署,分發的全部自控。

但是很可惜,Xcode的frame capture無法執行,因為shader使用了最新的特性:函式指標。所以這也意味著Metal的光追要是用了函式指標也無法除錯了?

之後有空再去試試看。

2樓:此老徐

介面深愛!郵件、通知、小組件等都很不錯!最大的痛點就是虛擬機器用不了VMWare不行!所以,對於Intel的CPU,強烈不建議工作用的機器公升級Buig Sur!深刻的教訓!

Mac os big sur 作死更新 各種問題 怎麼辦?

土豆 真實操了蛋了,公升級一卡big sur 整個人都不好了,各種問題,各種不相容,各種重灌,然後各種問題,截止目前,我開發環境都有問題了 知無不言 我的excle莫名其妙的打字不顯示,打完才顯示 我的印表機也是,打出來都是白紙,咋辦啊,是不是要更新驅動,查了印表機官網,配套驅動還沒出來啊啊啊啊啊,...

如何評價 如何評價 ?

問到心坎裡了。蒐個遊戲,網頁出來 如何評價XX這款遊戲 知乎。蒐個明星,網頁出來 如何評價XX這人 知乎 搜什麼雞毛都是 如何評價XX 知乎 如何評價 是知乎的八股文麼?如何評價 如何評價 如何評價 別人評價你舒服嗎?為啥人都喜歡評價別人的事兒,卻不愛自省 傻了吧唧的,很多都是事後諸葛亮,在知道事情...

如何評價評價電影《無極》?

崔慧姿的男友力小亮 我不知道為啥這麼多人黑這電影?不管別的就這個電影本身而言我覺得很不錯。崑崙從無情無知 只有對食物,活著本能的渴望 找到了自己作為人的渴望,大將軍從絕情的騙愛只貪圖傾城美色到流下真情的淚,還有傾城最後看著乙個是自己本該愛著的人和已經一起居住許久都那啥過的倆人,即使被騙,他對大將軍也...