Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 440 for Scalar (0.14 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/canonicalize.td

      [(CopyAttrs $src, $dest)]>;
    
    // Canonicalize: Log(1.0 + x) to Log1p(x)
    //
    // We currently do this rewrite only if the constant `1` is a scalar, because
    // it is safely broadcastable to any shape. To be able to canonicalize when
    // constant values is not a scalar, we have to first prove that it is
    // broadcastable to `x`, which requires static shape information.
    def LogToLog1p : Pat<
      (TF_LogOp:$src (TF_AddV2Op $arg,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Dec 06 18:42:28 UTC 2023
    - 17K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/saved_model/core/test_utils.cc

        result.push_back(dt);
      }
      return result;
    }
    
    std::vector<std::vector<int64_t>> InterestingShapes() {
      std::vector<std::vector<int64_t>> interesting_shapes;
      interesting_shapes.push_back({});             // Scalar
      interesting_shapes.push_back({10});           // 1D Vector
      interesting_shapes.push_back({3, 3});         // 2D Matrix
      interesting_shapes.push_back({1, 4, 6, 10});  // Higher Dimension Tensor
      return interesting_shapes;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Sep 08 20:13:32 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  3. tensorflow/cc/experimental/libtf/tests/tensor_test.cc

        Status s =
            BuildImmediateExecutionContext(std::get<1>(GetParam()), &ctx_raw);
        ASSERT_EQ(tensorflow::errors::OK, s.code()) << s.message();
        ctx.reset(ctx_raw);
      }
    
      // Construct a scalar.
      impl::TaggedValueTensor x;
      {
        AbstractTensorHandle* x_raw = nullptr;
        Status s = TestScalarTensorHandle<float, TF_FLOAT>(ctx.get(), 2.0f, &x_raw);
        ASSERT_EQ(tensorflow::errors::OK, s.code()) << s.message();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 19 21:44:52 UTC 2023
    - 5K bytes
    - Viewed (0)
  4. README.md

    <a href="https://github.com/scalar/scalar/?utm_source=fastapi&utm_medium=website&utm_campaign=main-badge" target="_blank" title="Scalar: Beautiful Open-Source API References from Swagger/OpenAPI files"><img src="https://fastapi.tiangolo.com/img/sponsors/scalar.svg"></a>
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu May 30 13:28:20 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/lift_variables_test_pass.h

            Tensor t =
                Tensor(tensorflow::DT_FLOAT, tensorflow::TensorShape({100, 50}));
            t.flat<float>().setZero();
            outputs->push_back(t);
          } else {
            // Create a scalar float tensor.
            Tensor t = Tensor(tensorflow::DT_FLOAT, tensorflow::TensorShape({}));
            t.flat<float>()(0) = 1.0f;
            outputs->push_back(t);
          }
        }
        return OkStatus();
      }
    };
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 21 15:49:06 UTC 2022
    - 5.6K bytes
    - Viewed (0)
  6. src/internal/trace/event.go

    		m.Name = "/sched/gomaxprocs:threads"
    		m.Value = Value{kind: ValueUint64, scalar: e.base.args[0]}
    	case go122.EvHeapAlloc:
    		m.Name = "/memory/classes/heap/objects:bytes"
    		m.Value = Value{kind: ValueUint64, scalar: e.base.args[0]}
    	case go122.EvHeapGoal:
    		m.Name = "/gc/heap/goal:bytes"
    		m.Value = Value{kind: ValueUint64, scalar: e.base.args[0]}
    	default:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:39:00 UTC 2024
    - 28.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1beta1/generated.proto

      //
      // 1) `atomic`: the list is treated as a single entity, like a scalar.
      //      Atomic lists will be entirely replaced when updated. This extension
      //      may be used on any type of list (struct, scalar, ...).
      // 2) `set`:
      //      Sets are lists that must not have multiple items with the same value. Each
      //      value must be a scalar, an object with x-kubernetes-map-type `atomic` or an
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 28 15:34:11 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  8. tensorflow/c/eager/parallel_device/parallel_device_lib.h

      // Construct a parallel tensor consisting of the scalar values from `values`.
      template <typename DataType>
      std::unique_ptr<ParallelTensor> ScalarsFromSequence(
          absl::Span<const DataType> values, TFE_Context* context,
          TF_Status* status) const;
    
      // A parallel tensor with scalar integers numbering component devices.
      std::unique_ptr<ParallelTensor> DeviceIDs(TFE_Context* context,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 25 15:21:13 UTC 2023
    - 12.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc

      return tensorflow::GetTypeFromTFTensorShape({1}, builder.getIntegerType(32));
    }
    
    Value ReshapeScalarToSizeType(OpBuilder builder, Value scalar, Location loc) {
      auto size_type = GetSizeType(builder);
      return builder.create<TF::ReshapeOp>(
          loc, ArrayRef<Type>{size_type},
          ArrayRef<Value>{scalar, GetR1Const(size_type.getShape(), builder, loc)});
    }
    
    LogicalResult CreateInitBufferValue(ArrayRef<int64_t> element_shape,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  10. tensorflow/c/kernels/summary_op.cc

        CHECK_EQ(TF_OK, TF_GetCode(status)) << "Error while adding type constraint";
        TF_RegisterKernelBuilder("ScalarSummary", builder, status);
        CHECK_EQ(TF_OK, TF_GetCode(status))
            << "Error while registering Scalar Summmary kernel";
      }
      TF_DeleteStatus(status);
    }
    
    // A dummy static variable initialized by a lambda whose side-effect is to
    // register the ScalarSummary kernel.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 6.2K bytes
    - Viewed (0)
Back to top