Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for attr (0.24 sec)

  1. tensorflow/c/eager/c_api_unified_experimental.cc

      }
      tsl::Set_TF_Status_from_Status(s, tracing_op->SetOpName(op_name));
    }
    
    void TF_AbstractOpSetAttrType(TF_AbstractOp* op, const char* const attr_name,
                                  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));
    }
    
    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/gradients/nn_grad.cc

    };
    
    // TODO(vnvo2409): Add python test
    class BiasAddGradientFunction : public GradientFunction {
     public:
      explicit BiasAddGradientFunction(AttrBuilder f_attrs)
          : forward_attrs_(f_attrs) {}
    
      Status Compute(AbstractContext* ctx,
                     absl::Span<AbstractTensorHandle* const> grad_outputs,
                     absl::Span<AbstractTensorHandle*> grad_inputs) override {
    C++
    - Registered: Tue Mar 26 12:39:09 GMT 2024
    - Last Modified: Wed Feb 28 13:53:47 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  3. tensorflow/c/experimental/gradients/tape/tape_operation.cc

      forward_op_.attrs.Set(attr_name, value);
      return parent_op_->SetAttrFloat(attr_name, value);
    }
    Status TapeOperation::SetAttrBool(const char* attr_name, bool value) {
      forward_op_.attrs.Set(attr_name, value);
      return parent_op_->SetAttrBool(attr_name, value);
    }
    Status TapeOperation::SetAttrType(const char* attr_name, DataType value) {
      forward_op_.attrs.Set(attr_name, value);
    C++
    - Registered: Tue Feb 27 12:39:08 GMT 2024
    - Last Modified: Tue Jun 07 01:53:35 GMT 2022
    - 9K bytes
    - Viewed (1)
  4. tensorflow/c/eager/c_api_remote_test_util.cc

                       "      op: 'MatMul'"
                       "      input: 'a'"
                       "      input: 'b'"
                       "      device: '",
                       matmul_device, "'",
                       "      attr {"
                       "        key: 'T'"
                       "        value {"
                       "          type: DT_FLOAT"
                       "        }"
                       "      }"
                       "    }"
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Fri Dec 11 22:56:03 GMT 2020
    - 9.1K bytes
    - Viewed (0)
  5. tensorflow/c/eager/gradients_test.cc

                  &num_retvals, &forward_op, tape.get(), registry);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
    
      string read_message;
      s = forward_op.attrs.Get("message", &read_message);
      ASSERT_EQ(errors::OK, s.code()) << s.message();
      ASSERT_EQ(read_message, message);
    }
    
    Status RecordOperationWithNullGradientFunctionModel(
    C++
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Thu Feb 15 09:49:45 GMT 2024
    - 7K bytes
    - Viewed (0)
Back to top