Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 80 for Op (0.16 sec)

  1. tensorflow/c/eager/tracing_utils.cc

    namespace tracing {
    
    Status MaybeSetOpName(AbstractOperation* op, const char* op_name) {
      if (isa<TracingOperation>(op)) {
        TF_RETURN_IF_ERROR(dyn_cast<TracingOperation>(op)->SetOpName(op_name));
      }
      if (isa<gradients::TapeOperation>(op)) {
        TF_RETURN_IF_ERROR(MaybeSetOpName(
            dyn_cast<gradients::TapeOperation>(op)->GetBackingOperation(),
            op_name));
      }
      return absl::OkStatus();
    }
    }  // namespace tracing
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Feb 27 13:57:45 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  2. tensorflow/c/eager/tape.h

        auto op_id_it = tensor_tape.find(tensor_id);
        if (op_id_it == tensor_tape.end()) {
          continue;
        }
        int64_t op_id = op_id_it->second;
        auto op_it = op_tape->find(op_id);
        auto result_op_it = result.op_tape.find(op_id);
        if (op_id == -1 || op_it == op_tape->end() ||
            result_op_it != result.op_tape.end()) {
          continue;
        }
        CHECK(result.op_tape.emplace(op_id, op_it->second).second);
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 02 12:40:29 GMT 2024
    - 47.2K bytes
    - Viewed (1)
  3. tensorflow/c/c_api_experimental_test.cc

                        /*expected_shape*/ make_shape({1, 6}));
      TFE_DeleteOp(reshape_op);
      reshape_op = nullptr;
    
      TFE_Op* fill_op = TFE_NewOp(tfe_context_, "Fill", status_);
      CHECK_EQ(TF_OK, TF_GetCode(status_)) << TF_Message(status_);
      TFE_OpSetAttrType(fill_op, "T", TF_FLOAT);
      TFE_OpSetAttrType(fill_op, "Tshape", TF_INT32);
    
      float five = 5.0;
    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)
  4. tensorflow/c/experimental/gradients/not_differentiable.cc

      for (int i = 0; i < grad_inputs.size(); i++) {
        grad_inputs[i] = nullptr;
      }
      return OkStatus();
    }
    
    Status RegisterNotDifferentiable(GradientRegistry* registry, const string& op) {
      return registry->Register(op, [](const ForwardOperation& op) {
        return new NotDifferentiableGradientFunction;
      });
    }
    }  // namespace gradients
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Wed Jun 15 01:15:58 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  5. tensorflow/c/experimental/gradients/math_grad.cc

    }  // namespace
    
    GradientFunction* AddRegisterer(const ForwardOperation& op) {
      return new AddGradientFunction;
    }
    
    GradientFunction* ExpRegisterer(const ForwardOperation& op) {
      return new ExpGradientFunction(op.outputs[0]);
    }
    
    GradientFunction* MatMulRegisterer(const ForwardOperation& op) {
      return new MatMulGradientFunction(op.inputs, op.attrs);
    }
    
    GradientFunction* SqrtRegisterer(const ForwardOperation& op) {
    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_function_test.cc

      // Sanity check returned OpDef
      string data(static_cast<const char*>(buffer->data), buffer->length);
      OpDef op_def;
      op_def.ParseFromString(data);
      EXPECT_EQ(op_def.name(), func_name_);
      EXPECT_EQ(op_def.input_arg_size(), 1);
      EXPECT_EQ(op_def.output_arg_size(), 1);
      EXPECT_FALSE(op_def.is_stateful());
    
      TF_DeleteBuffer(buffer);
    }
    
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Jul 20 22:08:54 GMT 2023
    - 63.6K bytes
    - Viewed (6)
  7. tensorflow/c/eager/immediate_execution_operation.h

    #include "tensorflow/core/framework/device_attributes.pb.h"
    #include "tensorflow/core/framework/op_def.pb.h"
    #include "tensorflow/core/framework/types.pb.h"
    #include "tensorflow/core/platform/casts.h"
    #include "tensorflow/core/platform/status.h"
    #include "tensorflow/core/util/managed_stack_trace.h"
    
    struct TFE_Op;
    
    namespace tensorflow {
    
    class ImmediateExecutionContext;
    class AbstractOpAttrs;
    
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Mon Sep 26 22:40:32 GMT 2022
    - 3.6K bytes
    - Viewed (0)
  8. tensorflow/c/c_api_experimental.cc

      NodeDef node_def;
      tensorflow::ImmediateExecutionOperation* op = tensorflow::unwrap(tfe_op);
      node_def.set_name(op->Name());
      node_def.set_op(op->Name());
      for (int i = 0; i < num_inputs; ++i) {
        node_def.add_input("dummy_input");
      }
      OperationFromInterface(op)->Attrs().FillAttrValueMap(node_def.mutable_attr());
    
      const tensorflow::OpRegistrationData* op_reg_data;
      status->status =
    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)
  9. tensorflow/c/eager/parallel_device/parallel_device_lib_test.cc

      ParallelDevice parallel_device(std::move(devices));
      std::unique_ptr<TFE_Op, decltype(&TFE_DeleteOp)> handle_op(
          TFE_NewOp(context.get(), "VarHandleOp", status.get()), TFE_DeleteOp);
      ASSERT_TRUE(TF_GetCode(status.get()) == TF_OK) << TF_Message(status.get());
      TFE_OpSetAttrType(handle_op.get(), "dtype", TF_FLOAT);
      TFE_OpSetAttrShape(handle_op.get(), "shape", /*dims=*/nullptr, /*num_dims=*/0,
                         status.get());
    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)
  10. tensorflow/c/BUILD

            "//tensorflow/core:core_cpu_internal",
            "//tensorflow/core:direct_session",
            "//tensorflow/core:framework",
            "//tensorflow/core:framework_internal",
            "//tensorflow/core:functional_ops_op_lib",
            "//tensorflow/core:lib",
            "//tensorflow/core:math_ops_op_lib",
            "//tensorflow/core:nn_ops_op_lib",
            "//tensorflow/core:no_op_op_lib",
    Plain Text
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Wed Mar 27 18:00:18 GMT 2024
    - 30.3K bytes
    - Viewed (0)
Back to top