Skip to content

Instantly share code, notes, and snippets.

View JohnJocoo's full-sized avatar
🏠
Working from home

Anton Frolov JohnJocoo

🏠
Working from home
  • Choosy
  • Remote
View GitHub Profile
@JohnJocoo
JohnJocoo / test.exs
Created November 1, 2023 20:35
Testing how Nx tensors caching work
Mix.install([{:nx, "~> 0.5"}, {:exla, "~> 0.5"}, {:benchee, "~> 1.0"}])
Nx.global_default_backend(EXLA.Backend)
Application.put_env(:exla, :default_client, :host)
Nx.Defn.default_options(compiler: EXLA, client: :host)
defmodule Test do
import Nx.Defn
@JohnJocoo
JohnJocoo / .gitignore
Created August 23, 2020 17:34 — forked from Yousha/.gitignore
.gitignore for C/C++ developers.
##### Windows
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db
# Dump file
*.stackdump
# Copyright 2015 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
struct Values
{
Values()
: v1(1),
v2(1)
{
}
int v1;