- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 855 for SELF (0.05 sec)
-
tensorflow/compiler/mlir/tfr/examples/pad/pad_ops_test.py
'paddings': paddings, 'mode': mode, } # Make sure the composition python function is correct self._assertOpAndComposite([input_], tf.raw_ops.MirrorPad, ops_defs._composite_mirror_pad, kwargs_, kwargs) # Make sure the translation and decomposition is correct self._assertOpAndComposite([input_], tf.function(gen_pad_ops.new_mirror_pad),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Sep 28 21:37:05 UTC 2021 - 3.4K bytes - Viewed (0) -
tensorflow/c/experimental/saved_model/internal/testdata/gen_saved_models.py
def __init__(self): self.uninitialized_variable = resource_variable_ops.UninitializedVariable( name="uninitialized_variable", dtype=dtypes.int64) class Module(module.Module): """A module with an UninitializedVariable.""" def __init__(self): super(Module, self).__init__() self.sub_module = SubModule() self.initialized_variable = variables.Variable(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Mar 06 21:32:57 UTC 2023 - 3.4K bytes - Viewed (0) -
docs_src/dependencies/tutorial011_an_py39.py
from typing import Annotated from fastapi import Depends, FastAPI app = FastAPI() class FixedContentQueryChecker: def __init__(self, fixed_content: str): self.fixed_content = fixed_content def __call__(self, q: str = ""): if q: return self.fixed_content in q return False checker = FixedContentQueryChecker("bar") @app.get("/query-checker/")
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 544 bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/cyclic_object_graph.py
def __init__(self, parent): super(ReferencesParent, self).__init__() self.parent = parent # CHECK: tf_saved_model.global_tensor # CHECK-SAME: tf_saved_model.exported_names = ["child.my_variable"] self.my_variable = tf.Variable(3.) # Creates a cyclic object graph. class TestModule(tf.Module): def __init__(self): super(TestModule, self).__init__()
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Sep 28 21:37:05 UTC 2021 - 1.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/call_to_exported.py
# CHECK-NOT: tf_saved_model.exported_names @tf.function(input_signature=[tf.TensorSpec([], tf.float32)]) def callee(self, x): return x, self.v @tf.function(input_signature=[tf.TensorSpec([], tf.float32)]) def caller(self, x): return self.callee(x) if __name__ == '__main__':
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 28 19:09:38 UTC 2023 - 3K bytes - Viewed (0) -
docs_src/websockets/tutorial003_py39.py
""" class ConnectionManager: def __init__(self): self.active_connections: list[WebSocket] = [] async def connect(self, websocket: WebSocket): await websocket.accept() self.active_connections.append(websocket) def disconnect(self, websocket: WebSocket): self.active_connections.remove(websocket) async def send_personal_message(self, message: str, websocket: WebSocket):
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 18 12:29:59 UTC 2023 - 2.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/examples/mnist/mnist_ops_test.py
'dilation_h': 1, 'padding': 'SAME', 'act': 'RELU6' } self._assertOpAndComposite([input_, filter_, bias], tf.function(gen_mnist_ops.new_conv2d), ops_defs._composite_conv_add_relu, kwargs) def test_new_conv2d_tanh(self): self.skipTest('Fix tanh gradients') input_ = tf.random.uniform([1, 4, 4, 1])
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Sep 28 21:37:05 UTC 2021 - 4K bytes - Viewed (0) -
docs_src/dependencies/tutorial004.py
app = FastAPI() fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"}] class CommonQueryParams: def __init__(self, q: Union[str, None] = None, skip: int = 0, limit: int = 100): self.q = q self.skip = skip self.limit = limit @app.get("/items/") async def read_items(commons: CommonQueryParams = Depends()): response = {} if commons.q:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 639 bytes - Viewed (0) -
src/cmd/vet/testdata/assign/assign.go
import "math/rand" type ST struct { x int l []int } func (s *ST) SetX(x int, ch chan int) { // Accidental self-assignment; it should be "s.x = x" x = x // ERROR "self-assignment of x to x" // Another mistake s.x = s.x // ERROR "self-assignment of s.x to s.x" s.l[0] = s.l[0] // ERROR "self-assignment of s.l.0. to s.l.0." // Bail on any potential side effects to avoid false positives s.l[num()] = s.l[num()]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 20 15:46:42 UTC 2019 - 804 bytes - Viewed (0) -
docs_src/dependencies/tutorial002.py
app = FastAPI() fake_items_db = [{"item_name": "Foo"}, {"item_name": "Bar"}, {"item_name": "Baz"}] class CommonQueryParams: def __init__(self, q: Union[str, None] = None, skip: int = 0, limit: int = 100): self.q = q self.skip = skip self.limit = limit @app.get("/items/") async def read_items(commons: CommonQueryParams = Depends(CommonQueryParams)): response = {} if commons.q:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat May 14 11:59:59 UTC 2022 - 656 bytes - Viewed (0)