Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for is_initialized (0.24 sec)

  1. tensorflow/compiler/jit/xla_device_ops.cc

                                    *(*ptr)->tensor() = value;
                                    (*ptr)->is_initialized = true;
                                    return absl::OkStatus();
                                  }));
      mutex_lock ml(*variable->mu());
      OP_REQUIRES(
          context,
          !variable->is_initialized || variable->tensor()->dtype() == dtype_,
          errors::InvalidArgument(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/mark_initialized_variables.cc

      auto* var_ptr = GetVariableFromSession(var_handle_op, device_name, mgr);
      if (!var_ptr) return false;
      auto* tensor = var_ptr->tensor();
      bool is_initialized = tensor && tensor->IsInitialized();
      var_ptr->Unref();
      return is_initialized;
    }
    
    LogicalResult MarkInitializedVariablesInFunction(func::FuncOp function,
                                                     tensorflow::Session* session) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 13 19:14:56 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/mark_initialized_variables.h

    #include "tensorflow/core/public/session.h"
    
    namespace mlir {
    namespace tf_saved_model {
    // Marks all variables in 'function' whether they are initialized
    // in 'session' or not by setting an attribute named 'is_initialized'
    // on each variable op with value true/false based on variable is initialized
    // in the session or not.
    // If 'session' is NULL the function is no-op.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 19 00:13:50 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model_mark_initialized_variables.mlir

      // CHECK: "tf.VarHandleOp"
      // CHECK-SAME: shared_name = "var1"
      // CHECK-SAME: _is_initialized = true
      // CHECK: "tf.VarHandleOp"
      // CHECK-SAME: shared_name = "var2"
      // CHECK-SAME: _is_initialized = true
      // CHECK: "tf.VarHandleOp"
      // CHECK-SAME: shared_name = "var3"
      // CHECK-SAME: _is_initialized = false
    
      // INVALID-NOT: _is_initialized
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Oct 30 06:52:55 UTC 2023
    - 2.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/tests/promote_resources_to_args_functions.mlir

      }
    
      // One resource, one read. _is_initialized is true, should be promoted.
      // CHECK-LABEL: func @read(%arg0: tensor<f32> {tf.resource_name = "x"}) -> tensor<f32>
      func.func @read() -> tensor<f32> {
        // CHECK-NOT: "tf.VarHandleOp"
        // CHECK-NOT: "tf.ReadVariableOp"
        // CHECK: return %arg0
        %1 = "tf.VarHandleOp"() {container = "", shared_name = "x", _is_initialized = true} : () -> tensor<!tf_type.resource<tensor<f32>>>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 24 05:47:26 UTC 2022
    - 1.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/mappingToJvm/EmptyBlocksTest.kt

            )
    
            val result = runtimeInstanceFromResult(schema, resolution, kotlinFunctionAsConfigureLambda, RuntimeCustomAccessors.none, ::TopLevel)
    
            assertTrue { result.configuredLazy.isInitialized() }
        }
    
        @Test
        fun `configuring function with no block for Kotlin default param leads to object access`() {
            val resolution = schema.resolve(
                """
                configuring()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 11:58:18 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/concurrent/BuildServices.kt

            private
            fun checkForFailure() {
                failure.getAndSet(null)?.let { throw it }
            }
        }
    
        override fun close() {
            executorService.apply {
                if (isInitialized()) {
                    value.shutdown()
                }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CacheCorruptionTest.kt

            .cache(cache)
            .cookieJar(JavaNetCookieJar(cookieManager))
            .build()
      }
    
      @AfterEach
      fun tearDown() {
        ResponseCache.setDefault(null)
        if (this::cache.isInitialized) {
          cache.delete()
        }
      }
    
      @Test
      fun corruptedCipher() {
        val response =
          testCorruptingCache {
            corruptMetadata {
              // mess with cipher suite
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 6K bytes
    - Viewed (0)
  9. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/mappingToJvm/AccessorTest.kt

            val resolution = schema.resolve("configureCustomInstance { }")
            assertTrue(runtimeInstanceFromResult(schema, resolution, configureLambdas, runtimeCustomAccessors, ::MyReceiver).myHiddenInstance.isInitialized())
        }
    
    
        @Test
        fun `accesses receiver from runtime lambda argument mapping to JVM`() {
            val resolution = schema.resolve(
                """
                configureLambdaArgument {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 11:58:18 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/set_tpu_infeed_layout.cc

      xla::Shape old_shape = xla::TypeToShape(t);
      XLA_Shape old_shape_c = {};
      XLA_Shape new_shape_c = {};
      TfTpu_ExecutorApiFn *executor = stream_executor::tpu::ExecutorApiFn();
      if (!stream_executor::tpu::IsInitialized(executor)) {
        return failure();
      }
      ApiConverter::ToC(old_shape, &old_shape_c);
      executor->TpuTransferManager_GetInfeedLayoutFn(&old_shape_c, &new_shape_c);
      xla::Shape new_shape = ApiConverter::FromC(&new_shape_c);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top