• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

master / tensorflow-riemopt / 14604923970

22 Apr 2025 09:24PM UTC coverage: 85.827% (-0.3%) from 86.174%
14604923970

push

github

master
Linting

1 of 8 new or added lines in 2 files covered. (12.5%)

92 existing lines in 6 files now uncovered.

1629 of 1898 relevant lines covered (85.83%)

2.57 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

83.33
/tensorflow_riemopt/variable.py
1
import tensorflow as tf
3✔
2
from tensorflow_riemopt.manifolds import Euclidean
3✔
3

4

5
def assign_to_manifold(var, manifold):
3✔
6
    if not hasattr(var, "shape"):
3✔
NEW
7
        raise ValueError(
×
8
            "var should be a valid variable with a 'shape' attribute"
9
        )
10
    if not manifold.check_shape(var):
3✔
11
        raise ValueError("Invalid variable shape {}".format(var.shape))
3✔
12
    setattr(var, "manifold", manifold)
3✔
13

14

15
def get_manifold(var, default_manifold=Euclidean()):
3✔
16
    if not hasattr(var, "shape"):
3✔
NEW
17
        raise ValueError(
×
18
            "var should be a valid variable with a 'shape' attribute"
19
        )
20
    return getattr(var, "manifold", default_manifold)
3✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc