Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pytensor/link/c/cmodule.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def __init__(self, name=None):

self.support_code = []
self.functions = []
self.includes = ["<Python.h>", "<iostream>", '"pytensor_mod_helper.h"']
self.includes = ["<Python.h>", '"pytensor_mod_helper.h"']
self.init_blocks = []

def print_methoddef(self, stream):
Expand Down
4 changes: 1 addition & 3 deletions pytensor/tensor/blas.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,9 +472,7 @@ def c_support_code(self, **kwargs):
return blas_header_text() + mod_str

def c_headers(self, **kwargs):
# std.cout doesn't require the '%' symbol to print stuff...
# so it works much better with python's string-substitution stuff.
return ["<iostream>"]
return []

def c_libraries(self, **kwargs):
return ldflags()
Expand Down
2 changes: 1 addition & 1 deletion pytensor/tensor/special.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def infer_shape(self, fgraph, node, shape):
return shape

def c_headers(self, **kwargs):
return ["<iostream>", "<cmath>"]
return ["<cmath>"]

def c_support_code_apply(self, node: Apply, name: str) -> str:
"""Needed to define NPY_RAVEL_AXIS"""
Expand Down