tfg.rendering.framebuffer.RasterizedAttribute
Stay organized with collections
Save and categorize content based on your preferences.
A single rasterized attribute and optionally its screen-space derivatives.
tfg.rendering.framebuffer.RasterizedAttribute(
value: tf.Tensor,
d_dx: Optional[tf.Tensor] = None,
d_dy: Optional[tf.Tensor] = None
)
Tensors are expected to have shape [batch, height, width, channels] or
[batch, num_layers, height, width, channels].
Immutable once created.
Attributes |
is_multi_layer
|
|
value
|
Dataclass field
|
d_dx
|
Dataclass field
|
d_dy
|
Dataclass field
|
Methods
layer
View source
layer(
index
)
Slices at the given layer index, returning a single-layer attribute.
__eq__
__eq__(
other
)
Class Variables |
d_dx
|
None
|
d_dy
|
None
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2022-07-01 UTC.
[null,null,["Last updated 2022-07-01 UTC."],[],[],null,["# tfg.rendering.framebuffer.RasterizedAttribute\n\n\u003cbr /\u003e\n\n|----------------------------------------------------------------------------------------------------------------------------------|\n| [View source on GitHub](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/rendering/framebuffer.py#L22-L85) |\n\nA single rasterized attribute and optionally its screen-space derivatives. \n\n tfg.rendering.framebuffer.RasterizedAttribute(\n value: tf.Tensor,\n d_dx: Optional[tf.Tensor] = None,\n d_dy: Optional[tf.Tensor] = None\n )\n\nTensors are expected to have shape \\[batch, height, width, channels\\] or\n\\[batch, num_layers, height, width, channels\\].\n\nImmutable once created.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Attributes ---------- ||\n|------------------|-----------------|\n| `is_multi_layer` | \u003cbr /\u003e \u003cbr /\u003e |\n| `value` | Dataclass field |\n| `d_dx` | Dataclass field |\n| `d_dy` | Dataclass field |\n\n\u003cbr /\u003e\n\nMethods\n-------\n\n### `layer`\n\n[View source](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/rendering/framebuffer.py#L72-L85) \n\n layer(\n index\n )\n\nSlices at the given layer index, returning a single-layer attribute.\n\n### `__eq__`\n\n __eq__(\n other\n )\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Class Variables --------------- ||\n|------|--------|\n| d_dx | `None` |\n| d_dy | `None` |\n\n\u003cbr /\u003e"]]