Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 138 for getDevice (0.31 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/fused_kernel_matcher.cc

        rewriter.replaceOp(op_to_replace, ValueRange({fused_op}));
        return success();
      }
    };
    
    const char kDeviceAttr[] = "device";
    const char kDeviceGpu[] = "GPU";
    
    std::optional<std::string> GetDevice(mlir::Operation *op) {
      mlir::StringAttr device = op->getAttrOfType<mlir::StringAttr>(kDeviceAttr);
      if (!device || device.getValue().empty()) {
        return std::nullopt;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc

          execute_launch.getLoc(), llvm::ArrayRef<Type>{}, reformat_operands);
      WrapOpInLaunch(&builder, execute_launch.getLoc(), reformat_op,
                     execute_launch.getDevice());
    
      // Build the replicated unformat op after the loop. First prepare building the
      // replicate op.
      llvm::SmallVector<std::pair<ValueRange, Type>, 8> unformat_replicate_operands;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/tpu_dynamic_layout_pass.cc

            BuildCopyWithLayout(execute_launch, compile_launch, get_layout,
                                entry.value().get(), &builder);
    
        auto device_list = mlir::cast<ArrayAttr>(
            replicate.getDevices().value().get(execute_launch.getDevice()));
        copy_with_layout->setAttr(kDeviceAttr,
                                  device_list.getValue()[entry.index()]);
    
        entry.value().set(copy_with_layout);
      }
      return true;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/replicate_to_island.cc

        // Map aliased devices to explicit devices based on replica.
        if (auto launch = dyn_cast<tf_device::LaunchOp>(op))
          if (auto device_by_replica = devices.value().get(launch.getDevice()))
            launch->setAttr(
                kDeviceAttr,
                device_by_replica.cast<ArrayAttr>()[replica_id].cast<StringAttr>());
    
        return WalkResult::advance();
      });
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 24 21:01:40 UTC 2023
    - 16.9K bytes
    - Viewed (0)
  5. maven-api-impl/src/main/java/org/apache/maven/internal/impl/AbstractSession.java

        //
    
        /**
         * Shortcut for <code>getService(RepositoryFactory.class).createLocal(...)</code>
         *
         * @see RepositoryFactory#createLocal(Path)
         */
        @Override
        public LocalRepository createLocalRepository(Path path) {
            return getService(RepositoryFactory.class).createLocal(path);
        }
    
        /**
         * Shortcut for <code>getService(RepositoryFactory.class).createRemote(...)</code>
         *
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 27.5K bytes
    - Viewed (0)
  6. api/maven-api-core/src/main/java/org/apache/maven/api/Session.java

         * <p>
         * Shortcut for {@code getService(TypeRegistry.class).require(...)}.
         *
         * @see org.apache.maven.api.services.TypeRegistry#require(String)
         */
        @Nonnull
        Type requireType(@Nonnull String id);
    
        /**
         * Obtain the {@link Language} from the specified {@code id}.
         * <p>
         * Shortcut for {@code getService(LanguageRegistry.class).require(...)}.
         *
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Tue Jun 11 07:23:04 UTC 2024
    - 30.2K bytes
    - Viewed (0)
  7. analysis/analysis-api-platform-interface/src/org/jetbrains/kotlin/analysis/api/platform/annotations.kt

    /**
     * A property annotated with [KaCachedService] stores a cached IntelliJ project or application service.
     *
     * Retrieving services via [Project.getService][com.intellij.openapi.project.Project.getService] and
     * [Application.getService][com.intellij.openapi.application.Application.getService] can have an impact on performance when called
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 22:09:27 UTC 2024
    - 1.5K bytes
    - Viewed (0)
  8. pkg/kubelet/apis/podresources/testing/provider_mock.go

    }
    
    // GetDevices mocks base method.
    func (m *MockDevicesProvider) GetDevices(podUID, containerName string) []*v10.ContainerDevices {
    	m.ctrl.T.Helper()
    	ret := m.ctrl.Call(m, "GetDevices", podUID, containerName)
    	ret0, _ := ret[0].([]*v10.ContainerDevices)
    	return ret0
    }
    
    // GetDevices indicates an expected call of GetDevices.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  9. analysis/analysis-api-platform-interface/src/org/jetbrains/kotlin/analysis/api/platform/lifetime/KotlinLifetimeTokenProvider.kt

        public abstract fun getLifetimeTokenFactory(): KaLifetimeTokenFactory
    
        public companion object {
            public fun getService(project: Project): KotlinLifetimeTokenProvider =
                project.getService(KotlinLifetimeTokenProvider::class.java)
        }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Thu Jun 06 17:57:40 UTC 2024
    - 805 bytes
    - Viewed (0)
  10. platforms/core-runtime/logging/src/main/java/org/gradle/internal/featurelifecycle/DefaultDeprecatedUsageProgressDetails.java

        }
    
        @Override
        public String getRemovalDetails() {
            return featureUsage.getRemovalDetails();
        }
    
        @Override
        public String getAdvice() {
            return featureUsage.getAdvice();
        }
    
        @Override
        public String getContextualAdvice() {
            return featureUsage.getContextualAdvice();
        }
    
        @Override
        public String getDocumentationUrl() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 15:24:26 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top