Skip to content

Instantly share code, notes, and snippets.

View ngoldbaum's full-sized avatar

Nathan Goldbaum ngoldbaum

View GitHub Profile
// _cat
static PyObject * THPVariable__cat(PyObject* self_, PyObject* args, PyObject* kwargs)
{
HANDLE_TH_ERRORS
static PythonArgParser parser({
"_cat(TensorList tensors, int64_t dim=0, *, Tensor out=None)",
}, /*traceable=*/true);
ParsedArgs<3> parsed_args;
auto _r = parser.parse(args, kwargs, parsed_args);
In [1]: import yt
In [2]: ds = yt.load('ArepoBullet/snapshot_150.hdf5', smoothing_factor=1.5)
yt : [INFO ] 2020-02-27 15:45:18,078 Omega Lambda is 0.0, so we are turning off Cosmology.
yt : [INFO ] 2020-02-27 15:45:18,138 Parameters: current_time
= 1.5380632172269546
yt : [INFO ] 2020-02-27 15:45:18,138 Parameters: domain_dimensions
= [1 1 1]
yt : [INFO ] 2020-02-27 15:45:18,139 Parameters: domain_left_edge
= [0. 0. 0.]
Collecting package metadata (current_repodata.json): ...working... done
Solving environment: ...working... done
## Package Plan ##
environment location: /home/goldbaum/miniconda3/envs/test-environment
added / updated specs:
- cpuonly
- python=3.7
UnsatisfiableError: The following specifications were found to be incompatible with each other:
Package mkl conflicts for:
pytorch -> mkl[version='>=2018']
Package libstdcxx-ng conflicts for:
python=3.7 -> libstdcxx-ng[version='>=7.2.0|>=7.3.0']
Package python conflicts for:
pytorch -> python[version='>=2.7,<2.8.0a0|>=3.5,<3.6.0a0|>=3.6,<3.7.0a0|>=3.7,<3.8.0a0|>=3.8,<3.9.0a0']
--- python_nn_functions_old.cpp 2020-02-12 20:49:49.470685646 -0600
+++ python_nn_functions_new.cpp 2020-02-12 20:50:21.507428604 -0600
@@ -53,6 +53,160 @@
END_HANDLE_TH_ERRORS
}
+// generated forward declarations start here
+
+static PyObject * THPVariable_adaptive_avg_pool2d(PyObject* self_, PyObject* args, PyObject* kwargs);
+static PyObject * THPVariable_adaptive_avg_pool3d(PyObject* self_, PyObject* args, PyObject* kwargs);
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Executing: program /usr/bin/ssh host qgpu2, user (unspecified), command scp -v -t .
OpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017
debug1: Reading configuration data /home/goldbaum/.ssh/config
debug1: /home/goldbaum/.ssh/config line 79: Applying options for qgpu2
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to gpu.quansight.dev [157.245.113.86] port 2222.
debug1: Connection established.
debug1: identity file /home/goldbaum/.ssh/id_rsa type 0
debug1: key_load_public: No such file or directory
import yt
import numpy as np
ds = yt.load("enzo_tiny_cosmology/RD0009/RD0009")
ad = ds.all_data()
def _norm(field, data):
    temp = data["density"].copy()
    dens = np.array(data["density"])
diff --git a/test/test_overrides.py b/test/test_overrides.py
index c9821c45db..f44523063b 100644
--- a/test/test_overrides.py
+++ b/test/test_overrides.py
@@ -29,7 +29,7 @@ def implements_diagonal(torch_function):
"""
@functools.wraps(torch_function)
def decorator(func):
- HANDLED_FUNCTIONS_DIAGONAL[torch_function.__name__] = func
+ HANDLED_FUNCTIONS_DIAGONAL[torch_function] = func