DeepLearning_2026 / lecture-01 /assets /SlideWrapper-CsGd5nkW.js
vlbthambawita's picture
Release site-v1.0.4
deda0dd verified
Raw History Blame Contribute Delete
7.76 kB
import{$ as e,B as t,C as n,K as r,O as i,Q as a,R as o,St as s,T as c,U as l,Z as ee,_ as u,b as d,bt as f,dt as p,f as m,g as h,gt as g,i as _,lt as v,m as te,v as y,y as b,yt as x,z as ne}from"./modules/shiki-CJZsCeMT.js";import{$ as S,A as C,J as w,X as T,Y as E,t as D,z as O}from"./useNav-DdRarJm8.js";import{t as k}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{M as A,f as re}from"./modules/vue-ClnAKIA7.js";import{_ as ie,d as j,f as M,g as N,h as P,m as F,n as I,p as L,v as R}from"./slidev/context-C6dxaFaS.js";import{n as z,r as B,t as V}from"./syncState-3Tc2ZArb.js";import{a as H,f as U}from"./index-Bm7ETj3d.js";import"./slidev/client-Bm4juGWa.js";import{t as W}from"./useDrawings-BvK1PXHw.js";var G=[`innerHTML`],K=c({__name:`DrawingPreview`,props:{page:{}},setup(e){let{drawingState:n}=W();return(r,i)=>x(n)[e.page]?(t(),d(`svg`,{key:0,class:`w-full h-full absolute top-0 pointer-events-none`,innerHTML:x(n)[e.page]},null,8,G)):b(`v-if`,!0)}}),q=v({}),J=[],Y=[];z(q,`$syncUp`,!0),z(q,`$syncDown`,!0),z(q,`$paused`,!1),z(q,`$onSet`,e=>J.push(e)),z(q,`$onPatch`,e=>Y.push(e)),B(),z(q,`$patch`,async()=>!1);var ae=V(q,q,!0),X=window.navigator.userAgent.match(/Chrome\/(\d+)/)?.[1];X&&Number(X);var Z=window.navigator.userAgent.match(/Chrome\/(\d+)/)?.[1];Z&&Number(Z);var oe=new class{_screenshotSession=null;getSnapshot(e,t){let n=e+(t?`-dark`:`-light`),r=ae.state[n];if(!r)return;let i=O(e);if(i&&r?.revision===i?.meta.slide.revision)return r.image}async saveSnapshot(e,t,n){return!1}async startCapturing(e){return!1}},se=[`id`],ce=[`id`],le={class:`slidev-slide-container w-full h-full relative`},ue=[`src`],Q=p(null),de=k(c({__name:`SlideContainer`,props:{width:{type:Number},meta:{default:()=>({})},isMain:{type:Boolean,default:!1},no:{type:Number,required:!1},useSnapshot:{type:Boolean,default:!1},contentStyle:{type:Object,default:()=>({})}},setup(n){let r=n,{isPrintMode:i}=D(),c=p(null),f=re(c),m=p(null),g=h(()=>r.width??f.width.value),v=h(()=>r.width?r.width/w.value:f.height.value),y=h(()=>C.value&&!i.value?+C.value:Math.min(g.value/T.value,v.value/E.value)),x=h(()=>({...r.contentStyle,height:`${E.value}px`,width:`${T.value}px`,"--slidev-slide-scale":y.value})),S=h(()=>r.width?{width:`${r.width}px`,height:`${r.width/w.value}px`}:{});if(r.isMain){let e=document.documentElement.style;a(()=>e.setProperty(`--slidev-slide-scale`,y.value.toString())),ne(()=>e.removeProperty(`--slidev-slide-scale`))}A(ie,y),A(N,m),e(()=>{r.isMain&&(Q.value=m.value)}),o(()=>{ee(()=>r.isMain&&y.value,()=>{_()})});let O=h(()=>{if(!(r.no==null||!r.useSnapshot))return oe.getSnapshot(r.no,U.value)});return(e,r)=>O.value?(t(),d(te,{key:1},[b(` Image Snapshot `),u(`div`,le,[u(`img`,{src:O.value,class:`w-full h-full object-cover`,style:s(S.value)},null,12,ue),r[0]||=u(`div`,{absolute:``,"bottom-1":``,"right-1":``,"p0.5":``,"text-cyan:75":``,"bg-cyan:10":``,rounded:``,title:`Snapshot`},[u(`div`,{class:`i-carbon-camera`})],-1)])],2112)):(t(),d(`div`,{key:0,id:n.isMain?`slide-container`:void 0,ref_key:`container`,ref:c,class:`slidev-slide-container`,style:s(S.value)},[u(`div`,{id:n.isMain?`slide-content`:void 0,ref_key:`slideElement`,ref:m,class:`slidev-slide-content`,style:s(x.value)},[l(e.$slots,`default`,{},void 0,!0)],12,ce),l(e.$slots,`controls`,{},void 0,!0)],12,se))}}),[[`__scopeId`,`data-v-0167a76e`]]),fe=Object.assign({}),pe=Object.assign({}),me=Object.assign({}),he=Object.assign({}),ge=Object.assign({}),_e=Object.assign({}),ve={course:{code:`PGR207`,year:2026,title:`Deep Learning`,instructor:`Vajira Thambawita (PhD)`,email:`vajira@simula.no`},space:`DeepLearning-VT/DeepLearning_2026`,repo:`vlbthambawita/DeepLearning`,decks:[{id:`lecture-01`,title:`Introduction to Deep Learning`,subtitle:`Course overview, what deep learning is, and where it is used`,week:1,published:!0,notebook:null,source:`old_slides/2025/Teaching - Deep Leaning - 2025- Lecture 01.pdf`},{id:`lecture-02`,title:`Basics of Neural Networks`,subtitle:`Artificial neurons, the perceptron, Adaline and gradient descent`,week:2,published:!0,notebook:null,source:`old_slides/2025/Teaching - Deep Leaning - 2025 - Lecture 02 .pdf`},{id:`lecture-03`,title:`PyTorch for Deep Learning`,subtitle:`Tensors, autograd, and a fully-connected network on MNIST`,week:3,published:!0,notebook:null,source:null},{id:`lecture-04`,title:`Deep Convolutional Neural Networks`,subtitle:`Locality and weight sharing, the convolution operation, and CNNs in PyTorch`,week:4,published:!0,notebook:null,source:`old_slides/2025/Teaching - Deep Leaning - 2025 - Lecture 03.pdf`},{id:`lecture-05`,title:`Recurrent Neural Networks`,subtitle:`Sequence data, the recurrent layer, LSTM and GRU, and an RNN in PyTorch`,week:6,published:!0,publicNotes:!0,notebook:null,source:`old_slides/2025/Teaching - Deep Leaning - 2025 - Lecture 5_6.pdf`},{id:`lecture-06`,title:`Transformers`,subtitle:`Query, key and value; the original architecture, and what modern transformers changed`,week:7,published:!0,notebook:null,source:`old_slides/2025/Teaching - Deep Leaning - 2025 - Lecture 5_6.pdf`},{id:`lecture-07`,title:`Generative Models and GANs`,subtitle:`Autoencoders, VAEs, the adversarial game — and how diffusion took over`,week:9,published:!0,notebook:null,source:`old_slides/2025/Teaching - Deep Leaning - 2025 - Lecture 07.pdf`}]},ye=[`href`],be=Object.assign({"../../../../../packages/slidev-theme-dl2026/slide-top.vue":k(c({__name:`slide-top`,setup(e){let{$slidev:n,$page:r,$renderContext:i}=I(),a=h(()=>i.value===`slide`&&!n.nav.isPrintMode),o=h(()=>n.themeConfigs?.lecture??``),s=h(()=>n.themeConfigs?.lectureTitle??``),c=h(()=>{let e=r.value,t=`[${o.value?`Lecture ${o.value}, slide ${e}`:`Slide ${e}`}] `,n=[`**Lecture:** ${o.value}${s.value?` — ${s.value}`:``}`,`**Slide:** ${e}`,`**Link:** ${typeof window<`u`?`${window.location.origin}${window.location.pathname}#/${e}`:``}`,``,`**What is wrong?**`,`<!-- e.g. typo, wrong equation, broken figure, unclear explanation -->`,``].join(`
`),i=new URLSearchParams({title:t,body:n,labels:`slides`});return`https://github.com/${ve.repo}/issues/new?${i}`});return(e,n)=>a.value?(t(),d(`a`,{key:0,class:`dl-report`,href:c.value,target:`_blank`,rel:`noopener`,title:`Report a problem with this slide on GitHub`,onClick:n[0]||=m(()=>{},[`stop`])},`Report issue`,8,ye)):b(`v-if`,!0)}}),[[`__scopeId`,`data-v-6b2267dc`]])}),xe=Object.assign({}),Se=Object.assign({}),Ce=Object.assign({}),we=Object.assign({}),Te=Object.assign({}),Ee=[Object.values(fe)[0],Object.values(pe)[0],Object.values(me)[0]].filter(Boolean),De={render:()=>Ee.map(e=>i(e))},$=[Object.values(he)[0],Object.values(ge)[0],Object.values(_e)[0]].filter(Boolean),Oe={render:()=>$.map(e=>i(e))},ke=[Object.values(be)[0],Object.values(xe)[0],Object.values(Se)[0]].filter(Boolean),Ae={render:()=>ke.map(e=>i(e))},je=[Object.values(Ce)[0],Object.values(we)[0],Object.values(Te)[0]].filter(Boolean),Me={render:()=>je.map(e=>i(e))},Ne=[`data-slidev-no`,`lang`],Pe=k(c({__name:`SlideWrapper`,props:{clicksContext:{type:Object,required:!0},renderContext:{type:String,default:`slide`},route:{type:Object,required:!0}},setup(e){let i=e,a=h(()=>i.route.meta?.slide?.frontmatter.zoom??1);A(P,i.route),A(L,i.route.meta.slide.frontmatter),A(M,p(i.route.no)),A(F,p(i.renderContext)),A(j,g(i,`clicksContext`)),A(R,a);let o=h(()=>({"user-select":S.selectable?void 0:`none`,"--slidev-slide-zoom-scale":a.value===1?void 0:a.value}));return(a,c)=>(t(),d(`div`,{"data-slidev-no":i.route.no,class:f(x(H)(e.route,[`slide`,`presenter`].includes(i.renderContext)?``:`disable-view-transition`)),style:s(o.value),lang:i.route.meta.slide.frontmatter.lang},[n(x(Me)),(t(),y(r(i.route.component))),n(x(Ae))],14,Ne))}}),[[`__scopeId`,`data-v-a7136532`]]);export{Q as a,de as i,Oe as n,K as o,De as r,Pe as t};