Skip to content

Unity package #29

Open
Open

Description

@lostmsu

Ship a package for Unity

Activity

  1. added this to the RC0 milestone on Jun 9, 2020
  2. modified the milestones: RC0, 2.x on Jun 23, 2020
  3. lostmsu commented on Jun 23, 2020

    @lostmsu
    ContributorAuthor

    Moving this to 2.x for now. Current runtime is unable to survive reload of its assemblies.

    Unofficially, you should be able to use TensorFlow in Unity by adding the following .NET Standard 2.0 assemblies from their respective NuGet packages:

    Gradient.dll // will be renamed LostTech.TensorFlow.dll by RC0
    IndexRange.dll
    LostTech.Gradient.dll
    LostTech.NumPy.dll
    LostTech.WhichPython.dll
    Python.Runtime.dll
    SharPy.Runtime.dll
    System.Buffers.dll
    System.Memory.dll
    System.Runtime.CompilerServices.Unsafe.dll
    System.Security.Permissions.dll
    

    And disabling Domain Reload.

    Unfortunately Unity Editor will reload the domain regardless whenever the project is recompiled, after which an attempt to initialize Gradient again will crash the editor with Access Violation/segfault.

    Extra hint: using GPU acceleration for TensorFlow requires CUDA and cudnn to be distributed (so an NVidia GPU). Calling tf.test.is_gpu_available() will tell if all components work as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions