Skip to content
This repository was archived by the owner on Jul 7, 2023. It is now read-only.

Commit ea69336

Browse files
committed
Fix internal tests.
PiperOrigin-RevId: 219173899
1 parent bb08c0f commit ea69336

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

tensor2tensor/data_generators/algorithmic_math.py

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515

1616
"""Algorithmic data generators for symbolic math tasks.
1717
18-
See go/symbolic-math-dataset
1918
"""
2019

2120
from __future__ import absolute_import
@@ -159,8 +158,6 @@ def random_expr(depth, vlist, ops):
159158
def algebra_inverse_solve(left, right, var, solve_ops):
160159
"""Solves for the value of the given var in an expression.
161160
162-
See go/symbolic-math-dataset.
163-
164161
Args:
165162
left: The root of the ExprNode tree on the left side of the equals sign.
166163
right: The root of the ExprNode tree on the right side of the equals sign.
@@ -243,8 +240,6 @@ def generate_algebra_inverse_sample(vlist, ops, solve_ops, min_depth,
243240
Given an input equation and variable, produce the expression equal to the
244241
variable.
245242
246-
See go/symbolic-math-dataset.
247-
248243
Args:
249244
vlist: Variable list. List of chars that can be used in the expression.
250245
ops: List of ExprOp instances. The allowed operators for the expression.
@@ -284,8 +279,6 @@ def generate_algebra_simplify_sample(vlist, ops, min_depth, max_depth):
284279
285280
Given an input expression, produce the simplified expression.
286281
287-
See go/symbolic-math-dataset.
288-
289282
Args:
290283
vlist: Variable list. List of chars that can be used in the expression.
291284
ops: List of ExprOp instances. The allowed operators for the expression.
@@ -312,8 +305,6 @@ def generate_calculus_integrate_sample(vlist, ops, min_depth, max_depth,
312305
313306
Given an input expression, produce the indefinite integral.
314307
315-
See go/symbolic-math-dataset.
316-
317308
Args:
318309
vlist: Variable list. List of chars that can be used in the expression.
319310
ops: List of ExprOp instances. The allowed operators for the expression.
@@ -345,7 +336,7 @@ def generate_calculus_integrate_sample(vlist, ops, min_depth, max_depth,
345336

346337

347338
# AlgebraConfig holds objects required to generate the algebra inverse
348-
# dataset. See go/symbolic-math-dataset.
339+
# dataset.
349340
# vlist: Variable list. A list of chars.
350341
# dlist: Numberical digit list. A list of chars.
351342
# flist: List of special function names. A list of chars.
@@ -367,8 +358,6 @@ def generate_calculus_integrate_sample(vlist, ops, min_depth, max_depth,
367358
def math_dataset_init(alphabet_size=26, digits=None, functions=None):
368359
"""Initializes required objects to generate symbolic math datasets.
369360
370-
See go/symbolic-math-dataset.
371-
372361
Produces token set, ExprOp instances, solve_op dictionary, encoders, and
373362
decoders needed to generate the algebra inverse dataset.
374363

0 commit comments

Comments
 (0)