mirror of
https://github.com/apache/arrow.git
synced 2026-10-29 00:56:31 +08:00
Check for ImportError in benchmarks/plasma.py
Change-Id: I6e6779b656e2e18350e6d2de82edd6239a7b915c
This commit is contained in:
1 parent
008ae7b98a
commit
4938932d24
2 files changed
+8
-11
No files matched your search
@@ -18,8 +18,12 @@
|
||||
import numpy as np
|
||||
import timeit
|
||||
|
||||
import pyarrow.plasma as plasma
|
||||
|
||||
try:
|
||||
import pyarrow.plasma as plasma
|
||||
except ImportError:
|
||||
# TODO(wesm): These are not asv benchmarks, so we can just fail
|
||||
# silently here
|
||||
pass
|
||||
|
||||
class SimplePlasmaThroughput(object):
|
||||
"""Benchmark plasma store throughput with a single client."""
|
||||
|
||||
@@ -24,15 +24,8 @@ import sys
|
||||
import tempfile
|
||||
import time
|
||||
|
||||
|
||||
try:
|
||||
from pyarrow._plasma import (ObjectID, ObjectNotAvailable, # noqa
|
||||
PlasmaBuffer, PlasmaClient, connect)
|
||||
except ImportError:
|
||||
# TODO(wesm): These are not asv benchmarks, so we can just fail
|
||||
# silently here
|
||||
pass
|
||||
|
||||
from pyarrow._plasma import (ObjectID, ObjectNotAvailable, # noqa
|
||||
PlasmaBuffer, PlasmaClient, connect)
|
||||
|
||||
# The Plasma TensorFlow Operator needs to be compiled on the end user's
|
||||
# machine since the TensorFlow ABI is not stable between versions.
|
||||
|
||||
Reference in new issue
Block a user