
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
aesara-theano-fallback
Advanced tools
Striving towards backwards compatibility with the Theano -> Aesara transition
Striving towards backwards compatibility as
Theano is replaced by
Aesara by the PyMC3
project. The idea is to provide a nearly drop in
replacement for importing aesara
that will fall back onto theano
when
aesara
is not installed. This was specifically designed to support the
exoplanet and
starry projects so it might not support
all of the features that you need. If you find something that isn't supported,
please submit a pull request!
This library can be installed using pip:
python -m pip install aesara-theano-fallback
The syntax is designed to mostly follow aesara
, so things like the following will often work:
import aesara_theano_fallback.tensor as aet
For top-level access, use
from aesara_theano_fallback import aesara
One place where the syntax has changed significantly between Theano and Aesara
is the theano.gof
module was re-named to aesara.graph
and the contents were
moved around a little bit. For exoplanet and starry, we define a few custom Op
s
and you can use this library to do that as follows:
from aesara_theano_fallback.graph import basic, op
class MyPythonOp(op.Op):
def make_node(self, *args):
# ...
return basic.Apply(self, in_args, out_args)
class MyCOp(op.ExternalCOp):
func_file = "./cpp_impl.cc"
func_name = "APPLY_SPECIFIC(my_op_name)"
# ...
FAQs
Striving towards backwards compatibility with the Theano -> Aesara transition
We found that aesara-theano-fallback demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.