Crate caffe2op_counter

source ·

Structs

  • | If the internal count value <= 0, outputs | true, otherwise outputs false. | | Will always use TensorCPU regardless | the Context |
  • | If the internal count value > 0, decreases | count value by 1 and outputs False, otherwise | outputs True. | | Will always use TensorCPU regardless | the Context |
  • | Increases count value by 1 and outputs | the previous value atomically. | | Will always use TensorCPU regardless | the Context |
  • | @brief | | CounterDeserializer is the deserializer | for Counters. |
  • | @brief | | CounterSerializer is the serializer | for Counter type. | | CounterSerializer takes in a blob that | contains a Counter, and serializes | it into a BlobProto protocol buffer. | At the moment only int64_t counters | are supported (since it’s the only once | that is really used). |
  • | Creates a count-down counter with initial | value specified by the init_count | argument. |
  • | Resets a count-down counter with initial | value specified by the init_count | argument. |
  • | Retrieve the current value from the | counter as an integer. | | Will always use TensorCPU regardless | the Context |