Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for Identity (0.16 sec)

  1. tensorflow/c/eager/c_api_experimental_test.cc

        TFE_DeleteExecutor(executor);
        TFE_DeleteContext(ctx);
      }
      TF_DeleteStatus(status);
    }
    
    TEST(CAPI, Function_ident_CPU) {
      // First create a simple identity function.
      TF_Graph* function_graph = TF_NewGraph();
      TF_OperationDescription* arg_descr =
          TF_NewOperation(function_graph, "Placeholder", "arg");
      TF_SetAttrType(arg_descr, "dtype", TF_INT32);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 03 03:14:26 GMT 2023
    - 31.5K bytes
    - Viewed (1)
  2. CONTRIBUTING.md

    you want to debug a kernel, you can compile specific files with `-g` using the
    `--per_file_copt` bazel option. For example, if you want to debug the Identity
    op, which are in files starting with `identity_op`, you can run
    
    ```bash
    bazel build --config=dbg --per_file_copt=+tensorflow/core/kernels/identity_op.*@-g //tensorflow/tools/pip_package:build_pip_package
    ```
    
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Thu Mar 21 11:45:51 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  3. tensorflow/c/eager/custom_device_test.cc

      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
    
      std::unique_ptr<TFE_Op, decltype(&TFE_DeleteOp)> reused_op(
          TFE_NewOp(context.get(), "Identity", status.get()), TFE_DeleteOp);
      TFE_OpReset(reused_op.get(), "Identity", custom_device_name, status.get());
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      ASSERT_EQ(tensorflow::string(TFE_OpGetDevice(reused_op.get(), status.get())),
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Aug 27 23:39:24 GMT 2020
    - 18.4K bytes
    - Viewed (0)
  4. tensorflow/c/eager/c_api_distributed_test.cc

             "        value {"
             "          type: DT_FLOAT"
             "        }"
             "      }"
             "    }"
             "    node_def {"
             "      name: 'identity'"
             "      op: 'Identity'"
             "      input: 'add:z:0'"
             "      device: '/job:localhost/task:0/device:CPU:0'"
             "      attr {"
             "        key: 'T'"
             "        value {"
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/gradients/math_grad.cc

                           AbstractTensorHandle** output, const char* name) {
      auto dtype = input->DataType();
      if (DataTypeIsFloating(BaseType(dtype)) ||
          DataTypeIsInteger(BaseType(dtype))) {
        return tensorflow::ops::Identity(ctx, input, output, name);
      } else if (!DataTypeIsComplex(BaseType(dtype)) &&
                 BaseType(dtype) != DT_VARIANT) {
        return errors::InvalidArgument(
            "Expected numeric or variant tensor, got dtype ", dtype);
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 15.2K bytes
    - Viewed (0)
  6. tensorflow/c/c_api_experimental_test.cc

      int assign = TF_OpIsStateful("AssignAddVariableOp", status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
      EXPECT_EQ(assign, 1);
      int id = TF_OpIsStateful("Identity", status.get());
      ASSERT_EQ(TF_OK, TF_GetCode(status.get())) << TF_Message(status.get());
      EXPECT_EQ(id, 0);
    }
    
    class ShapeInferenceTest : public ::testing::Test {
     protected:
      ShapeInferenceTest()
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Jan 17 22:27:52 GMT 2023
    - 13.1K bytes
    - Viewed (1)
  7. tensorflow/c/eager/c_api_test_util.cc

      TFE_OpSetAttrType(op, "T", TFE_TensorHandleDataType(a));
    
      return op;
    }
    
    TFE_Op* IdentityOp(TFE_Context* ctx, TFE_TensorHandle* a) {
      TF_Status* status = TF_NewStatus();
    
      TFE_Op* op = TFE_NewOp(ctx, "Identity", status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TFE_OpAddInput(op, a, status);
      CHECK_EQ(TF_OK, TF_GetCode(status)) << TF_Message(status);
      TF_DeleteStatus(status);
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Feb 21 22:37:46 GMT 2024
    - 23.5K bytes
    - Viewed (2)
  8. tensorflow/c/experimental/grappler/grappler.h

    // nodes. This may cause incorrectness in graph analyses, but is useful for
    // simulation or scheduling.
    // If aggressive_shape_inference is true, nodes are executed on the host to
    // identify output values when possible and does other aggressive strategies.
    // This may cause incorrectness in graph analyses, but is useful for simulation
    // or scheduling.
    // If include_input_tensor_values is true, the values of constant
    C
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Aug 03 18:08:43 GMT 2022
    - 12.5K bytes
    - Viewed (0)
  9. LICENSE

          "Licensor" shall mean the copyright owner or entity authorized by
          the copyright owner that is granting the License.
    
          "Legal Entity" shall mean the union of the acting entity and all
          other entities that control, are controlled by, or are under common
          control with that entity. For the purposes of this definition,
          "control" means (i) the power, direct or indirect, to cause the
    Plain Text
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Nov 29 17:31:56 GMT 2021
    - 13.3K bytes
    - Viewed (0)
Back to top