Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 197 for CAST (5.45 sec)

  1. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

    static void Cleanup(TF_WritableFile* file) {
      auto posix_file = static_cast<PosixFile*>(file->plugin_file);
      plugin_memory_free(const_cast<char*>(posix_file->filename));
      delete posix_file;
    }
    
    static void Append(const TF_WritableFile* file, const char* buffer, size_t n,
                       TF_Status* status) {
      auto posix_file = static_cast<PosixFile*>(file->plugin_file);
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Sun Mar 24 20:08:23 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/next_pluggable_device/c_api.cc

        TF_OpKernelContext* ctx) {
      auto* cc_ctx = reinterpret_cast<tensorflow::OpKernelContext*>(ctx);
      return reinterpret_cast<TF_CoordinationServiceAgent*>(
          cc_ctx->coordination_service_agent());
    }
    
    bool TF_CoordinationServiceIsInitialized(TF_CoordinationServiceAgent* agent) {
      if (agent == nullptr) return false;
      auto* cc_agent = reinterpret_cast<tsl::CoordinationServiceAgent*>(agent);
      return cc_agent->IsInitialized();
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jan 09 00:52:04 GMT 2024
    - 13.9K bytes
    - Viewed (1)
  3. tensorflow/c/eager/c_api_experimental.cc

      delete counter;
    }
    
    TFE_MonitoringCounterCell* TFE_MonitoringGetCellCounter0(
        TFE_MonitoringCounter0* counter) {
      return static_cast<TFE_MonitoringCounterCell*>(
          static_cast<void*>(counter->counter->GetCell()));
    }
    
    TFE_MonitoringCounter1* TFE_MonitoringNewCounter1(const char* name,
                                                      TF_Status* status,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Apr 11 23:52:39 GMT 2024
    - 35.9K bytes
    - Viewed (3)
  4. tensorflow/c/eager/c_api_unified_experimental_graph.cc

          return errors::Internal("Expected 1 output but found ", num_outputs);
        }
        auto* t = dyn_cast<GraphTensor>(outputs[0]);
        if (!t) {
          return tensorflow::errors::InvalidArgument(
              "Unable to cast input to GraphTensor");
        }
        inputs_.push_back(t->output_);
        *output = tensorflow::down_cast<TracingTensorHandle*>(outputs[0]);
        return absl::OkStatus();
      }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Mar 12 20:00:09 GMT 2024
    - 15.4K bytes
    - Viewed (1)
  5. tensorflow/c/c_api_test.cc

    TEST(CAPI, DataTypeEnum) {
      EXPECT_EQ(TF_FLOAT, static_cast<TF_DataType>(tensorflow::DT_FLOAT));
      EXPECT_EQ(TF_DOUBLE, static_cast<TF_DataType>(tensorflow::DT_DOUBLE));
      EXPECT_EQ(TF_INT32, static_cast<TF_DataType>(tensorflow::DT_INT32));
      EXPECT_EQ(TF_UINT8, static_cast<TF_DataType>(tensorflow::DT_UINT8));
      EXPECT_EQ(TF_INT16, static_cast<TF_DataType>(tensorflow::DT_INT16));
      EXPECT_EQ(TF_INT8, static_cast<TF_DataType>(tensorflow::DT_INT8));
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 96.9K bytes
    - Viewed (3)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/InternalSession.java

    import static org.apache.maven.internal.impl.Utils.cast;
    
    public interface InternalSession extends Session {
    
        static InternalSession from(Session session) {
            return cast(InternalSession.class, session, "session should be an " + InternalSession.class);
        }
    
        static InternalSession from(org.eclipse.aether.RepositorySystemSession session) {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Apr 23 12:55:57 GMT 2024
    - 3.4K bytes
    - Viewed (0)
  7. tensorflow/c/eager/c_api_unified_experimental.cc

        Status status = tensorflow::PartialTensorShape::MakePartialShape(
            reinterpret_cast<int64_t*>(shape.dim_sizes), shape.num_dims,
            &partial_shape);
        if (!status.ok()) {
          tsl::Set_TF_Status_from_Status(s, status);
          return nullptr;
        }
      }
      tsl::Set_TF_Status_from_Status(
          s, tracing_ctx->AddParameter(static_cast<DataType>(dtype), partial_shape,
                                       &t));
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/MutableClassToInstanceMap.java

        return cast(type, put(type, value));
      }
    
      @Override
      @CheckForNull
      public <T extends @NonNull B> T getInstance(Class<T> type) {
        return cast(type, get(type));
      }
    
      @CanIgnoreReturnValue
      @CheckForNull
      private static <T> T cast(Class<T> type, @CheckForNull Object value) {
        return Primitives.wrap(type).cast(value);
      }
    
      private Object writeReplace() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  9. tensorflow/c/c_api_experimental.cc

      flags->tf_xla_cpu_global_jit = static_cast<bool>(enable);
      return static_cast<unsigned char>(original);
    }
    
    void TF_SetXlaAutoJitMode(const char* mode) {
      tensorflow::SetXlaAutoJitFlagFromFlagString(mode);
    }
    
    unsigned char TF_GetXlaAutoJitEnabled() {
      tensorflow::XlaAutoJitFlag flag =
          tensorflow::GetMarkForCompilationPassFlags()->xla_auto_jit_flag;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 29.4K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/lang/GenericsUtil.java

                return Class.class.cast(type);
            }
            if (type instanceof ParameterizedType) {
                final ParameterizedType parameterizedType = ParameterizedType.class.cast(type);
                return getRawClass(parameterizedType.getRawType());
            }
            if (type instanceof WildcardType) {
                final WildcardType wildcardType = WildcardType.class.cast(type);
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 23.6K bytes
    - Viewed (0)
Back to top