Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for sargument (0.2 sec)

  1. 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,
                                                  TF_Status* s) {
    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)
  2. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

                              /*expected_max_outputs=*/1, status.get());
      EXPECT_NE(TF_GetCode(status.get()), TF_CANCELLED);
      EXPECT_EQ(TF_GetCode(status.get()), TF_INVALID_ARGUMENT);
      EXPECT_THAT(TF_Message(status.get()), HasSubstr("assertion failed"));
    
      // Note that future collectives with the same context do not work at the
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 15.3K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem.cc

        return;
      } else if (S_ISDIR(st.st_mode)) {
        TF_SetStatus(status, TF_FAILED_PRECONDITION, "source path is a directory");
        return;
      }
    
      // Do the actual rename. Here both arguments are filenames.
      if (rename(src, dst) != 0)
        TF_SetStatusFromIOError(status, errno, dst);
      else
        TF_SetStatus(status, TF_OK, "");
    }
    
    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)
  4. tensorflow/c/eager/parallel_device/parallel_device.cc

              " 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 "
                       "TPUReplicatedOutput to be a parallel tensor (placed on the "
    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)
  5. tensorflow/c/experimental/filesystem/plugins/gcs/gcs_filesystem_test.cc

      ASSERT_EQ(TF_GetCode(status_), TF_INVALID_ARGUMENT);
    
      // bucket name must end with "/"
      ParseGCSPath("gs://bucket", true, &bucket, &object, status_);
      ASSERT_EQ(TF_GetCode(status_), TF_INVALID_ARGUMENT);
    
      ParseGCSPath("gs://bucket/", false, &bucket, &object, status_);
      ASSERT_EQ(TF_GetCode(status_), TF_INVALID_ARGUMENT);
    }
    
    TEST_F(GCSFilesystemTest, RandomAccessFile) {
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Mon Aug 31 12:04:23 GMT 2020
    - 24.9K bytes
    - Viewed (0)
  6. tensorflow/c/eager/parallel_device/parallel_device_test.cc

        TensorHandlePtr combined_value = CreatePerDeviceValues(
            context.get(), components, device_name, status.get());
        ASSERT_TRUE(TF_GetCode(status.get()) == TF_INVALID_ARGUMENT)
            << TF_Message(status.get());
      }
    
      {
        // Try to extract the wrong number of components from a parallel tensor
        std::array<TFE_TensorHandle*, 1> correct_components{value_one.get()};
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 08 23:47:35 GMT 2021
    - 29.3K bytes
    - Viewed (1)
  7. tensorflow/c/eager/gradients_test.cc

      Status s = RunModel(RecordOperationWithNullGradientFunctionModel, ctx.get(),
                          {x.get()}, absl::MakeSpan(outputs),
                          /*use_function=*/!std::get<2>(GetParam()));
      ASSERT_EQ(error::INVALID_ARGUMENT, s.code());
      ASSERT_EQ(
          "Provided null gradient_function for 'Neg'.\nIf the intent is to treat "
          "this op as non-differentiable consider using RegisterNotDifferentiable "
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_function.cc

    void TF_GraphCopyFunction(TF_Graph* g, const TF_Function* func,
                              const TF_Function* grad, TF_Status* status) {
      if (func == nullptr) {
        status->status = InvalidArgument(
            "'func' argument to TF_GraphCopyFunction cannot be null");
        return;
      }
    
      tensorflow::mutex_lock l(g->mu);
      status->status = g->graph.AddFunctionDef(func->record->fdef(),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Apr 15 03:35:10 GMT 2024
    - 13.6K bytes
    - Viewed (2)
  9. tensorflow/c/eager/c_api_unified_experimental_test.cc

      TFE_DeleteContextOptions(opts);
    
      TF_AbstractFunction* f = TF_FinalizeFunction(ctx, nullptr, status.get());
      ASSERT_EQ(nullptr, f);
      ASSERT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(status.get()));
      TF_DeleteExecutionContext(ctx);
    }
    
    TEST_P(UnifiedCAPI, TF_AbstractOpSetOpTypeAfterFinishingOpBuildingRaises) {
      std::unique_ptr<TF_Status, decltype(&TF_DeleteStatus)> status(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri May 19 21:44:52 GMT 2023
    - 39.1K bytes
    - Viewed (0)
  10. tensorflow/c/c_api_test.cc

      TF_GraphGetTensorShape(graph, feed_out_0, returned_dims, 5, s);
      EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s)) << TF_Message(s);
    
      // Try to set an invalid shape (cannot change 2x3 to a 2x5).
      dims[1] = 5;
      TF_GraphSetTensorShape(graph, feed_out_0, dims, 2, s);
      EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s)) << TF_Message(s);
    
      // Test for a scalar.
      TF_Operation* three = ScalarConst(3, graph, s);
    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)
Back to top