Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for Bias_dims (0.2 sec)

  1. tensorflow/c/experimental/gradients/nn_grad_test.cc

        A.reset(A_raw);
      }
      // Bias
      float Bias_vals[] = {2.0f, 3.0f};
      int64_t Bias_dims[] = {2};
      AbstractTensorHandlePtr Bias;
      {
        AbstractTensorHandle* Bias_raw;
        status_ = TestTensorHandleWithDims<float, TF_FLOAT>(
            immediate_execution_ctx_.get(), Bias_vals, Bias_dims, 1, &Bias_raw);
        ASSERT_EQ(errors::OK, status_.code()) << status_.message();
        Bias.reset(Bias_raw);
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 28 13:53:47 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/prepare_tf.cc

        // Get a splat zero tensor with the expected dimension for the bias tensor
        auto elem_type = filter_type.getElementType();
        auto bias_dim = static_cast<const ConcreteType *>(this)->getBiasDim(
            filter_type.getShape());
        auto bias_type =
            tensorflow::GetTypeFromTFTensorShape({bias_dim}, elem_type);
        auto bias_attr = rewriter.getZeroAttr(bias_type);
        auto bias =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 21:49:50 UTC 2024
    - 64.6K bytes
    - Viewed (0)
Back to top