knitr

    2ısı

    2cevap

    Şartlar ile Lua'da küçük bir DSL kurmaya çalışıyorum. x = '0' function start() return function() end end function set_x (v) x = v return function() end end function if_x (v)

    1ısı

    1cevap

    I've got this UTF-8 module for Lua. şey require() eğer, sadece ilk iki fonksiyonları (charbytes ve len) mevcuttur olmasıdır. Geri kalan, tanımlanmasına rağmen kullanılamaz. Ben çok basit bir komut dos

    1ısı

    3cevap

    Bir dize adını Lua/Torch'daki bir işlev olarak değerlendirmek istiyorum. Gelen tensorType(some arguments) : require 'torch' tensorType = torch.getdefaulttensortype() print (tensorType) -- Will pr

    1ısı

    1cevap

    Kullanmakta olduğum bir işlev, çalıştırdığımda bana 'end' expected (to close 'if' at line 11) near 'until' hatasını veriyor, ancak ben kontrol ettim ve bir 'end' eksik tüm program. Ayrıca, ben iade ve

    2ısı

    1cevap

    içine paketleri alma hatası Torch7 as per the instructions'u yeni yükledim. Ben komut luarocks install nn ran (sadece komut satırından) tercüman kamransiquisMBP:~ khsiddiqui$ th ______ __ | T

    0ısı

    1cevap

    Burada Görüntü yarattı : gangster = display.newImageRect("assets/gangsta.png", gangsterwidth, gangsterheight) gangster.x = display.contentCenterX gangster.y = 950 sceneGroup:insert(gangster) Ve b

    0ısı

    1cevap

    Torch ile matris satırları çoğaltmak için [1 2 3 1 2 3 1 2 3 4 5 6 4 5 6 4 5 6 7 8 9 7 8 9 7 8 9] ? a = [1 2 3; 4 5 6; 7 8 9]; rows = repmat(1:size(a, 1), 1, 3); b = a(rows(:), :); Torch

    1ısı

    1cevap

    Bir Lua fonksiyonu var ++ c (ile 'nn' gerektirir): require 'nn' require 'image' require 'torch' require './lib/data_augmentation' function predict (x) do model = torch.load("trained.t7")

    1ısı

    1cevap

    Bir Lua işlevi yazıyorum, ben url örneğin "ev" için özellikle dize varsa url böyle bakarsak, bir if/else deyimi eklemek istiyorum: http://AAA/home http://AAA/home/01 http://AAA/home/02 Sonra fonks

    0ısı

    1cevap

    'daki "__tostring" ve "__tostring__" arasındaki fark nedir? Bazen Torch'de kullanılan bir __tostring__ olduğunu farkettim. Benim meşale-dataframe projemde print(my_data)'u işleyen bir __tostring var.