提交 1983af1c authored 作者: AndreiCostinescu's avatar AndreiCostinescu

Changed comments to docstrings where necessary in theano/compile/tests

上级 36b9ee2a
......@@ -96,12 +96,13 @@ off_by_half = BROKEN_ON_PURPOSE_Add(True)
class WeirdBrokenOp(gof.Op):
# This op can be inplace if behaviour is 'times1_inplace'
# This op can be destructive if behaviour is 'times2_inplace'
#
# In both cases, it does not set the destroy_map or view_map correctly so
# it should raise an error in DebugMode.
"""
This op can be inplace if behaviour is 'times1_inplace'
This op can be destructive if behaviour is 'times2_inplace'
In both cases, it does not set the destroy_map or view_map correctly so
it should raise an error in DebugMode.
"""
__props__ = ("behaviour", )
def __init__(self, behaviour):
......@@ -716,11 +717,12 @@ class BrokenCImplementationAdd(gof.Op):
class VecAsRowAndCol(gof.Op):
# Transforms a vector into a row and a column.
#
# This Op exists to check everything is correct when an Op has
# two outputs with different broadcasting patterns.
"""
Transforms a vector into a row and a column.
This Op exists to check everything is correct when an Op has
two outputs with different broadcasting patterns.
"""
__props__ = ()
def make_node(self, v):
......
# Test compilation modes
"""
Test compilation modes
"""
from __future__ import absolute_import, print_function, division
import copy
import unittest
......
# This test is for testing the NanGuardMode.
"""
This test is for testing the NanGuardMode.
"""
from __future__ import absolute_import, print_function, division
import logging
......
# Tests for the Op decorator
"""
Tests for the Op decorator
"""
from __future__ import absolute_import, print_function, division
import numpy as np
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论