Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for setStatus (0.23 sec)

  1. tensorflow/c/eager/c_api_unified_experimental.cc

                                  TF_DataType value, TF_Status* s) {
      Status status =
          unwrap(op)->SetAttrType(attr_name, static_cast<DataType>(value));
      TF_SetStatus(s, static_cast<TF_Code>(status.code()),
                   tsl::NullTerminatedMessage(status));
    }
    
    void TF_ExecuteOperation(TF_AbstractOp* op, int num_inputs,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

      if (position < 0)
        TF_SetStatusFromIOError(status, errno, posix_file->filename);
      else
        TF_SetStatus(status, TF_OK, "");
    
      return position;
    }
    
    static void Flush(const TF_WritableFile* file, TF_Status* status) {
      auto posix_file = static_cast<PosixFile*>(file->plugin_file);
    
      TF_SetStatus(status, TF_OK, "");
      if (fflush(posix_file->handle) != 0)
    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)
  3. tensorflow/c/eager/c_api_unified_experimental_eager.cc

      auto handle = dyn_cast<ImmediateExecutionTensorHandle>(unwrap(at));
      if (!handle) {
        string msg =
            StrCat("Not an eager tensor handle.", reinterpret_cast<uintptr_t>(at));
        TF_SetStatus(s, TF_INVALID_ARGUMENT, msg.c_str());
        return nullptr;
      }
      return wrap(handle);
    }
    
    TFE_Context* TF_ExecutionContextGetTFEContext(TF_ExecutionContext* ctx,
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jun 25 04:40:46 GMT 2020
    - 3.2K bytes
    - Viewed (0)
  4. tensorflow/c/c_api.cc

          ->set_disable_optimize_for_static_graph(true);
    }
    
    void TF_TensorFromProto(const TF_Buffer* from, TF_Tensor* to,
                            TF_Status* status) {
      TF_SetStatus(status, TF_OK, "");
      tensorflow::TensorProto from_tensor_proto;
      status->status = BufferToMessage(from, &from_tensor_proto);
      if (!status->status.ok()) {
        return;
      }
      status->status =
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 102.3K bytes
    - Viewed (0)
  5. tensorflow/c/eager/parallel_device/parallel_device.cc

              parallel_device.num_underlying_devices(),
              " outputs for TPUReplicatedOutput, but got ", expected_outputs));
          TF_SetStatus(status, TF_INVALID_ARGUMENT, message.c_str());
          return result;
        }
        if (absl::holds_alternative<TFE_TensorHandle*>(inputs[0])) {
          TF_SetStatus(status, TF_INVALID_ARGUMENT,
                       "Expected the input to "
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 29 22:05:31 GMT 2023
    - 18.3K bytes
    - Viewed (0)
  6. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache.cc

            if (block->state == FetchState::FINISHED) {
              return TF_SetStatus(status, TF_OK, "");
            }
            // Re-loop in case of errors.
            break;
          case FetchState::FINISHED:
            return TF_SetStatus(status, TF_OK, "");
        }
      }
      return TF_SetStatus(
          status, TF_INTERNAL,
          "Control flow should never reach the end of RamFileBlockCache::Fetch.");
    }
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jul 16 01:39:09 GMT 2020
    - 11.1K bytes
    - Viewed (0)
  7. tensorflow/c/eager/parallel_device/parallel_device_lib.cc

          finished_execute_.wait(l);
        }
        if (TF_GetCode(status_.get()) != TF_OK) {
          TF_SetStatus(status, TF_GetCode(status_.get()),
                       TF_Message(status_.get()));
          // Reset the member `status_` so future op executions (after recovery from
          // the bad `status`) start with an OK status.
          TF_SetStatus(status_.get(), TF_OK, "");
        }
        cancellation_manager_ = nullptr;
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Feb 09 07:47:20 GMT 2024
    - 25.4K bytes
    - Viewed (1)
  8. tensorflow/c/experimental/filesystem/plugins/gcs/ram_file_block_cache_test.cc

        if (!counter.WaitFor(std::chrono::seconds(10))) {
          // This avoids having the test time out, which is harder to debug.
          TF_SetStatus(status, TF_FAILED_PRECONDITION,
                       "desired concurrency not reached");
          return -1;
        }
        memset(buffer, 'x', n);
        TF_SetStatus(status, TF_OK, "");
        return n;
      };
      const int block_size = 8;
      tf_gcs_filesystem::RamFileBlockCache cache(
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Fri Oct 15 03:16:57 GMT 2021
    - 23.2K bytes
    - Viewed (0)
  9. tensorflow/c/env.cc

      size_t position;
    };
    
    void TF_CreateDir(const char* dirname, TF_Status* status) {
      TF_SetStatus(status, TF_OK, "");
      ::tensorflow::Set_TF_Status_from_Status(
          status, ::tensorflow::Env::Default()->CreateDir(dirname));
    }
    
    void TF_DeleteDir(const char* dirname, TF_Status* status) {
      TF_SetStatus(status, TF_OK, "");
      ::tensorflow::Set_TF_Status_from_Status(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Aug 11 01:20:50 GMT 2021
    - 7K bytes
    - Viewed (0)
  10. tensorflow/c/experimental/grappler/grappler_test.cc

                              TF_Status* const status) -> void {
        TF_SetStatus(status, TF_OK, "");
        PopulateDefaultParam(params);
        params->device_type = "Device0";
      };
      auto plugin_init_1 = [](TP_OptimizerRegistrationParams* const params,
                              TF_Status* const status) -> void {
        TF_SetStatus(status, TF_OK, "");
        PopulateDefaultParam(params);
        params->device_type = "Device1";
      };
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Thu Apr 13 22:30:58 GMT 2023
    - 11.6K bytes
    - Viewed (0)
Back to top